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

Method lwrap

src/api/data-array.ts:205–207  ·  view source on GitHub ↗

Wraps the array into a data array with the current comparator.

(values: U[])

Source from the content-addressed store, hash-verified

203
204 /** Wraps the array into a data array with the current comparator. */
205 private lwrap<U>(values: U[]): DataArray<U> {
206 return DataArrayImpl.wrap(values, this.defaultComparator);
207 }
208
209 public chain<U>(op: (arr: DataArray<T>) => DataArray<U>): DataArray<U> {
210 return op(this);

Callers 13

whereMethod · 0.95
mapMethod · 0.95
flatMapMethod · 0.95
limitMethod · 0.95
sliceMethod · 0.95
concatMethod · 0.95
sortMethod · 0.95
groupByMethod · 0.95
groupInMethod · 0.95
distinctMethod · 0.95
toMethod · 0.95
intoMethod · 0.95

Calls 1

wrapMethod · 0.80

Tested by

no test coverage detected