Skip to content

TrimEndParams

Parameters for trimEnd.

Import:

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

Signature:

export interface TrimEndParams

Properties

PropertyTypeDescription
shouldValidate?booleanIf true, throws an error if the string does not end with the suffix.
strstringThe string to trim.
suffixstringThe suffix to remove from the end of the string.

Links to this page: