MCPcopy Create free account
hub / github.com/blacksmithgu/datacore / into

Method into

src/api/data-array.ts:417–427  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

415 }
416
417 public into(key: string): DataArray<unknown> {
418 let result: unknown[] = [];
419 for (let child of this.values) {
420 let value = (child as Record<string, unknown>)[key];
421 if (value === undefined || value === null) continue;
422
423 result.push(value);
424 }
425
426 return this.lwrap(result);
427 }
428
429 public expand(key: string): DataArray<unknown> {
430 let result = [];

Callers

nothing calls this directly

Calls 1

lwrapMethod · 0.95

Tested by

no test coverage detected