MCPcopy Create free account
hub / github.com/sindresorhus/query-string / get

Function get

test/stringify.js:951–954  ·  view source on GitHub ↗
(target, key)

Source from the content-addressed store, hash-verified

949 const trapped = [];
950 const proxy = new Proxy({b: 1, a: 2}, {
951 get(target, key) {
952 trapped.push(key);
953 return target[key];
954 },
955 });
956 assert.equal(queryString.stringify(proxy, {sort: false}), 'b=1&a=2');
957 assert.deepEqual(structuredClone(trapped), ['b', 'a']);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected