pascalCase.js 310 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 define(['../lang/toString', './camelCase', './upperCase'], function(toString, camelCase, upperCase){ /** * camelCase + UPPERCASE first char */ function pascalCase(str){ str = toString(str); return camelCase(str).replace(/^[a-z]/, upperCase); } return pascalCase; });