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

Function randomKeys

packages/core/src/tests/utils.ts:232–234  ·  view source on GitHub ↗
(max = 3, min = 0)

Source from the content-addressed store, hash-verified

230}
231
232export function randomKeys(max = 3, min = 0) {
233 return multipleOf(randomNumOrStr, max, min);
234}
235
236export function randomDictObject(nestingLvl = 2, maxKeys = 3) {
237 if (nestingLvl < 0 || !isNumber(nestingLvl)) {

Callers 5

dict-unit.spec.tsFile · 0.90
cluster.spec.tsFile · 0.90
utils.tsFile · 0.85
randomDictObjectFunction · 0.85
randomClusterItemsFunction · 0.85

Calls 1

multipleOfFunction · 0.85

Tested by

no test coverage detected