MCPcopy Create free account
hub / github.com/denoland/std / set

Method set

random/_test_utils.ts:66–74  ·  view source on GitHub ↗
(target, prop, val: number & bigint)

Source from the content-addressed store, hash-verified

64 return dv[`get${type}`](i * target.BYTES_PER_ELEMENT, littleEndian);
65 },
66 set(target, prop, val: number & bigint) {
67 if (typeof prop === "symbol" || /\D/.test(prop)) {
68 return Reflect.set(target, prop, val, target);
69 }
70
71 const i = Number(prop);
72 dv[`set${type}`](i * target.BYTES_PER_ELEMENT, val, littleEndian);
73 return true;
74 },
75 });
76
77 proxy[Symbol.for("nodejs.util.inspect.custom")] = (

Callers

nothing calls this directly

Calls 1

setMethod · 0.65

Tested by

no test coverage detected