GT2/GT2-iOS/node_modules/pascal-case/pascal-case.js

14 lines
306 B
JavaScript

var camelCase = require('camel-case')
var upperCaseFirst = require('upper-case-first')
/**
* Pascal case a string.
*
* @param {String} string
* @param {String} [locale]
* @return {String}
*/
module.exports = function (string, locale) {
return upperCaseFirst(camelCase(string, locale), locale)
}