@tempots/std

underscore() function

underscore finds UpperCase characters and turns them into LowerCase and prepends them with a whtiespace. Sequences of more than one UpperCase character are left untouched.

Signature:

underscore: (s: string) => string

Parameters

Parameter

Type

Description

s

string

The string to underscore.

Returns: string

The underscored string.