MCPcopy
hub / github.com/tinyplex/tinybase / slice

Function slice

src/common/other.ts:115–119  ·  view source on GitHub ↗
(
  arrayOrString: ArrayOrString,
  start: number,
  end?: number,
)

Source from the content-addressed store, hash-verified

113 Array.isArray(thing);
114
115export const slice = <ArrayOrString extends string | any[]>(
116 arrayOrString: ArrayOrString,
117 start: number,
118 end?: number,
119): ArrayOrString => arrayOrString.slice(start, end) as ArrayOrString;
120
121export const size = (arrayOrString: string | readonly any[]): number =>
122 arrayOrString.length;

Callers 14

delListenerFunction · 0.90
getListenerArgsFunction · 0.90
getResultListenerStatFunction · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
getSortedRowIdsFunction · 0.90
createStoreFunction · 0.90
constructKeyFunction · 0.90
deconstructKeyFunction · 0.90
constructStorageKeyFunction · 0.90
deconstructFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…