Skip to content

trimEnd

Trims the specified suffix from the end of a string.

Import:

import { trimEnd } from '@mnaoumov/typescript-lib/string';

Signature:

function trimEnd(params: TrimEndParams): string

Parameters:

Parameter Type Description
params TrimEndParams The parameters.

Returns: string — The trimmed string.


Links to this page: