MCPcopy Index your code
hub / github.com/nodejs/node / has

Method has

deps/undici/undici.js:6221–6227  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

6219 return this.#state.filter((entry) => entry.name === name).map((entry) => entry.value);
6220 }
6221 has(name) {
6222 webidl.brandCheck(this, _FormData);
6223 const prefix = "FormData.has";
6224 webidl.argumentLengthCheck(arguments, 1, prefix);
6225 name = webidl.converters.USVString(name);
6226 return this.#state.findIndex((entry) => entry.name === name) !== -1;
6227 }
6228 set(name, value, filename = void 0) {
6229 webidl.brandCheck(this, _FormData);
6230 const prefix = "FormData.set";

Callers

nothing calls this directly

Calls 3

brandCheckMethod · 0.80
argumentLengthCheckMethod · 0.80
USVStringMethod · 0.80

Tested by

no test coverage detected