Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/kd_clients/core/Utils.ts>Utils.trimAllEndingValue

Various HTTP clients for miscellaneous use.
Latest
method Utils.trimAllEndingValue
import { Utils } from "https://deno.land/x/kd_clients@v1.0.0-preview.13/core/Utils.ts";

Trims the given valueToRemove from the end of the given valueToTrim until the valueToRemove does not exit anymore.

Parameters

valueToTrim: string

The value to trim the ending value from.

valueToRemove: string

The ending value to trim.

Returns

string

The given valueToTrim with the ending value trimmed.