std-string
string helpers (thin, total wrappers over JS string ops).
Functions
trim
function trim(s: string): stringRemove leading and trailing whitespace.
lower
function lower(s: string): stringupper
function upper(s: string): stringsplit
function split(s: string, sep: string): string[]join
function join(parts: string[], sep: string): stringincludes
function includes(s: string, needle: string): booleanstartsWith
function startsWith(s: string, prefix: string): booleanendsWith
function endsWith(s: string, suffix: string): booleanreplace
function replace(s: string, target: string, replacement: string): string