MCPcopy Create free account
hub / github.com/activejs/activejs / times

Function times

packages/core/src/tests/utils.ts:318–323  ·  view source on GitHub ↗
(count: number, callback: (counter: number) => any)

Source from the content-addressed store, hash-verified

316}
317
318export function times(count: number, callback: (counter: number) => any) {
319 return () =>
320 Array(count)
321 .fill(null)
322 .forEach((v, i) => callback(i));
323}
324
325export function randomConfig<K extends string>(
326 configOptions: K[],

Callers 15

units.spec.tsFile · 0.90
action.spec.tsFile · 0.90
extras.spec.tsFile · 0.90
dict-unit.spec.tsFile · 0.90
cluster.spec.tsFile · 0.90
list-unit.spec.tsFile · 0.90
selection.spec.tsFile · 0.90

Calls 1

fillMethod · 0.80

Tested by

no test coverage detected