Created
June 22, 2020 02:43
-
-
Save mactanxin/0fb132ba8342dae121f23e26d1bf40ce to your computer and use it in GitHub Desktop.
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
String.prototype.capFirstLetter = function() { | |
let [first, ...rest] = this.split(''); | |
return first.toUpperCase() + rest.join(''); | |
}; |
Author
mactanxin
commented
Jun 22, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment