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 hidden or 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