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

Method get

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

Source from the content-addressed store, hash-verified

6201 this.#state = this.#state.filter((entry) => entry.name !== name);
6202 }
6203 get(name) {
6204 webidl.brandCheck(this, _FormData);
6205 const prefix = "FormData.get";
6206 webidl.argumentLengthCheck(arguments, 1, prefix);
6207 name = webidl.converters.USVString(name);
6208 const idx = this.#state.findIndex((entry) => entry.name === name);
6209 if (idx === -1) {
6210 return null;
6211 }
6212 return this.#state[idx].value;
6213 }
6214 getAll(name) {
6215 webidl.brandCheck(this, _FormData);
6216 const prefix = "FormData.getAll";

Callers

nothing calls this directly

Calls 3

brandCheckMethod · 0.80
argumentLengthCheckMethod · 0.80
USVStringMethod · 0.80

Tested by

no test coverage detected