Skip to content

Instantly share code, notes, and snippets.

@jasp402
Last active August 5, 2020 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasp402/baad045d810c9c22450ff33bec3e8217 to your computer and use it in GitHub Desktop.
Save jasp402/baad045d810c9c22450ff33bec3e8217 to your computer and use it in GitHub Desktop.
JS-PackTools | capitalLetter
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