UNPKG

keys-converter

Version:

This package provide a util function to convert snake case object keys to camel case

12 lines 412 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isUpperCase = void 0; const isUpperCase = (char) => { if (char.length > 1) { throw new Error(`${char} has more than 1 char`); } return char.charCodeAt(0) >= 65 && char.charCodeAt(0) <= 90; }; exports.isUpperCase = isUpperCase; exports.default = exports.isUpperCase; //# sourceMappingURL=is_camel_case.js.map