Open Emperor01 opened 6 years ago
'use strict';
alert( camelize("background-color") );
function camelize(str) { return str.split('-').map( function(item, i) {return (i > 0) ? item[0].toUpperCase() + item.slice(1) : item} ).join(''); }
'use strict';
alert( camelize("background-color") );
function camelize(str) { return str.split('-').map( function(item, i) {return (i > 0) ? item[0].toUpperCase() + item.slice(1) : item} ).join(''); }