UNPKG

@qntm-code/utils

Version:

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

10 lines (9 loc) 312 B
import { capitalise } from './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) */ export function capitaliseFirst(value, number = 1) { return capitalise(value, { end: number }); }