TrimEndParams
Parameters for trimEnd.
Import:
import type { TrimEndParams } from 'obsidian-dev-utils/string';Signature:
export interface TrimEndParamsProperties
| Property | Type | Description |
|---|---|---|
| shouldValidate? | boolean | If true, throws an error if the string does not end with the suffix. |
| str | string | The string to trim. |
| suffix | string | The suffix to remove from the end of the string. |
Links to this page: