"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(' ');
}
