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
| /** | |
| * Uncamelize a string, joining the words by separator character. | |
| * | |
| * @param {string} text - Text to uncamelize | |
| * @param {string} [separator='_'] - Word separator | |
| * @returns {string} Uncamelized text | |
| */ | |
| function uncamelize(text, separator) { | |
| // Assume separator is _ if no one has been provided. | |
| if('undefined' === typeof separator) { |