MCPcopy
hub / github.com/YousefED/SyncedStore / getOwnPropertyDescriptor

Function getOwnPropertyDescriptor

packages/core/src/array.ts:246–263  ·  view source on GitHub ↗
(target, pArg)

Source from the content-addressed store, hash-verified

244 }
245 },
246 getOwnPropertyDescriptor(target, pArg) {
247 const p = propertyToNumber(pArg);
248 if (p === "length") {
249 return {
250 enumerable: false,
251 configurable: false,
252 writable: true,
253 };
254 }
255 if (typeof p === "number" && p >= 0 && p < (arr as any).lengthUntracked) {
256 return {
257 enumerable: true,
258 configurable: true,
259 writable: true,
260 };
261 }
262 return undefined;
263 },
264 ownKeys: (target) => {
265 const keys: string[] = [];
266 for (let i = 0; i < arr.length; i++) {

Callers

nothing calls this directly

Calls 1

propertyToNumberFunction · 0.85

Tested by

no test coverage detected