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

Function randomFn

packages/core/src/tests/utils.ts:133–136  ·  view source on GitHub ↗
(nestingLvl = 1)

Source from the content-addressed store, hash-verified

131
132// tslint:disable-next-line:ban-types
133export function randomFn(nestingLvl = 1): (...args) => any {
134 const randValue = randomValue(nestingLvl);
135 return () => randValue;
136}
137
138// returns a pure function that returns same random value everytime
139// for a specific number argument `n`

Callers 2

action.spec.tsFile · 0.90
utils.tsFile · 0.85

Calls 1

randomValueFunction · 0.85

Tested by

no test coverage detected