UNPKG

@qntm-code/utils

Version:

A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.

14 lines (13 loc) 480 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.capitaliseFirst = void 0; const capitalise_1 = require("./capitalise"); /** * Capitalises the first n characters of a string * @param value the string to capitalise * @param number the number of characters to capitalise (default 1) */ function capitaliseFirst(value, number = 1) { return (0, capitalise_1.capitalise)(value, { end: number }); } exports.capitaliseFirst = capitaliseFirst;