Skip to content

TrimStartParams

Parameters for trimStart.

Import:

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

Signature:

export interface TrimStartParams

Properties

PropertyTypeDescription
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.
strstringThe string to trim.

Links to this page: