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

Method limit

src/api/data-array.ts:245–247  ·  view source on GitHub ↗
(count: number)

Source from the content-addressed store, hash-verified

243 }
244
245 public limit(count: number): DataArray<T> {
246 return this.lwrap(this.values.slice(0, count));
247 }
248
249 public slice(start?: number, end?: number): DataArray<T> {
250 return this.lwrap(this.values.slice(start, end));

Callers

nothing calls this directly

Calls 2

lwrapMethod · 0.95
sliceMethod · 0.65

Tested by

no test coverage detected