string.camelize
string.camelize(s)
Parameters
- str
{String}
:the string to camelCase
Returns
{String}
:
the supplied string with hyphens removed and following letters capitalized.
var string = require("can-util/js/string/string");
console.log(string.camelize("foo-bar")); // -> "fooBar"
console.log(string.camelize("-webkit-flex-flow")); // -> "WebkitFlexFlow"