Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert string to camelCase

const camalize = function camalize(str) {
    return str.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g, (m, chr) => chr.toUpperCase());
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #string #camelCase
ADD COMMENT
Topic
Name
9+5 =