UNPKG

@primer/primitives

Version:

Typography, spacing, and color primitives for Primer design system

11 lines (10 loc) 386 B
/** * lowerCaseFirstCharacter * @scope custom implementation should only be used within `name path to ...` transformer * @description changes first letter to uppercase but keeps the rest of the word as is * @param string * @returns string */ export const lowerCaseFirstCharacter = ([firstLetter, ...restOfWord]) => { return firstLetter.toLowerCase() + restOfWord.join(''); };