3 * Copyright(c) 2016 Douglas Christopher Wilson
12 module.exports = toIdentifier
15 * Trasform the given string into a JavaScript identifier
22 function toIdentifier (str) {
25 .map(function (token) {
26 return token.slice(0, 1).toUpperCase() + token.slice(1)
29 .replace(/[^ _0-9a-z]/gi, '')