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

Function wrap

src/api/data-array.ts:470–473  ·  view source on GitHub ↗
(raw: T[] | DataArray<T>)

Source from the content-addressed store, hash-verified

468export namespace DataArray {
469 /** Create a new datacore data array. */
470 export function wrap<T>(raw: T[] | DataArray<T>): DataArray<T> {
471 if (isDataArray(raw)) return raw;
472 return DataArrayImpl.wrap(raw);
473 }
474
475 /** Create a new DataArray from an iterable object. */
476 export function from<T>(raw: Iterable<T>): DataArray<T> {

Callers

nothing calls this directly

Calls 2

isDataArrayFunction · 0.85
wrapMethod · 0.80

Tested by

no test coverage detected