MCPcopy Create free account
hub / github.com/nodejs/node / append

Method append

lib/internal/url.js:471–486  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

469 }
470
471 append(name, value) {
472 if (typeof this !== 'object' || this === null || !(#searchParams in this))
473 throw new ERR_INVALID_THIS('URLSearchParams');
474
475 if (arguments.length < 2) {
476 throw new ERR_MISSING_ARGS('name', 'value');
477 }
478
479 name = StringPrototypeToWellFormed(`${name}`);
480 value = StringPrototypeToWellFormed(`${value}`);
481 ArrayPrototypePush(this.#searchParams, name, value);
482
483 if (this.#context) {
484 setURLSearchParamsModified(this.#context);
485 }
486 }
487
488 delete(name, value = undefined) {
489 if (typeof this !== 'object' || this === null || !(#searchParams in this))

Callers 2

makeParamsFunction · 0.95
normalizeSearchParamsFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected