Skip to content

trimEnd

Trims the specified suffix from the end of a string.

Import:

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

Signature:

function trimEnd(params: TrimEndParams): string

Parameters:

ParameterTypeDescription
paramsTrimEndParamsThe parameters.

Returns: string — The trimmed string.


Links to this page: