UNPKG

keys-converter

Version:

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

18 lines 683 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.isCharUnderscore = void 0; const get_ascii_code_1 = __importDefault(require("./get_ascii_code")); const isCharUnderscore = (char) => { const underscoreCode = 95; if (typeof char === 'string') { const asciiCode = get_ascii_code_1.default(char); return asciiCode === underscoreCode; } return false; }; exports.isCharUnderscore = isCharUnderscore; exports.default = isCharUnderscore; //# sourceMappingURL=is_char_underscore.js.map