Last active
August 5, 2020 21:29
-
-
Save jasp402/baad045d810c9c22450ff33bec3e8217 to your computer and use it in GitHub Desktop.
JS-PackTools | capitalLetter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const jsPacktools = require("js-packtools")(); | |
//๐๐ป Capitalize only the first letter | |
jsPacktools.capitalLetter('hello word'); //โ Hello word | |
//๐๐ป Capitalize all the first letter of each word in the sentence | |
jsPacktools.capitalLetter('hello word', true); //โ Hello Word | |
//๐ This is the most basic way in which this function can be used. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment