MCPcopy Create free account
hub / github.com/angular/angular / delete

Method delete

packages/common/http/src/params.ts:272–274  ·  view source on GitHub ↗

* Removes a given value or all values from a parameter. * @param param The parameter name. * @param value The value to remove, if provided. * @return A new body with the given value removed, or with all values * removed if no value is specified.

(param: string, value?: string | number | boolean)

Source from the content-addressed store, hash-verified

270 * removed if no value is specified.
271 */
272 delete(param: string, value?: string | number | boolean): HttpParams {
273 return this.clone({param, value, op: 'd'});
274 }
275
276 /**
277 * Serializes the body to an encoded string, where key-value pairs (separated by `=`) are

Callers 1

initMethod · 0.45

Calls 1

cloneMethod · 0.95

Tested by

no test coverage detected