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

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

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

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

Parameters

valueToTrim: string

The value to trim the starting value from.

valueToRemove: string

The starting value to trim.

Returns

string

The given valueToTrim with the starting value trimmed.