Created
April 25, 2019 22:42
-
-
Save dmitrymatveev/3a899d7f009180d3f1e40eaf4f80bdff to your computer and use it in GitHub Desktop.
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 DELIMITER = /[\W_](\w)/g | |
export default str => str.replace(DELIMITER, (m, ch) => ch.toUpperCase()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment