Id like to know how I can covert a string into a pascal case string in javascript (& most probally regex).
Conversion Examples:
In case dash, space and other are string separators one may use lodash.
e.g.
_.upperFirst(_.camelCase('double-barrel')); // => DoubleBarrel