UNPKG

keys-converter

Version:

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

13 lines 668 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.removeIfLastCharIsUnderscore = void 0; const is_last_char_underscore_1 = __importDefault(require("./is_last_char_underscore")); const removeIfLastCharIsUnderscore = (str) => { return is_last_char_underscore_1.default(str) ? str.slice(0, (str.length - 1)) : str; }; exports.removeIfLastCharIsUnderscore = removeIfLastCharIsUnderscore; exports.default = removeIfLastCharIsUnderscore; //# sourceMappingURL=remove_last_char_if_underscore.js.map