Last active
July 26, 2022 21:09
-
-
Save 3200pro/69b002b5b389c6a5cdb3ac2ea05c9b81 to your computer and use it in GitHub Desktop.
Get the number of characters in a string
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 characterCount = (str, char) => str.split(char).length - 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment