MCPcopy Create free account
hub / github.com/krausest/js-framework-benchmark / label

Function label

frameworks/keyed/uhtml/src/utils.js:9–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7const { round, random } = Math;
8const pick = list => list[round(random() * 1000) % list.length];
9const label = () => `${pick(adjectives)} ${pick(colours)} ${pick(nouns)}`;
10
11let TR, ID = 1, SEL = 0, SIZE = 0, DATA = [];
12

Callers 1

createFunction · 0.70

Calls 1

pickFunction · 0.70

Tested by

no test coverage detected