UNPKG

@adaptabletools/adaptable-cjs

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

16 lines (15 loc) 487 B
"use strict"; /** * Converts string to Start Case. * Drop-in replacement for lodash/startCase. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.default = startCase; const tslib_1 = require("tslib"); const words_1 = tslib_1.__importDefault(require("./words")); function capitalize(word) { return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase(); } function startCase(string) { return (0, words_1.default)(string).map(capitalize).join(' '); }