Skip to content

TrimStartParams

Parameters for trimStart.

Import:

import type { TrimStartParams } from 'obsidian-dev-utils/string';

Signature:

export interface TrimStartParams

Properties

PropertyTypeDescription
$stringstringThe string to trim.
prefixstringThe prefix to remove from the start of the string.
shouldValidate?booleanIf true, throws an error if the string does not start with the prefix.

Links to this page: