Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/krausest/js-framework-benchmark
/ pick
Function
pick
frameworks/keyed/uhtml/src/utils.js:8–8 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
7
const
{ round, random } = Math;
8
const
pick = list => list[round(random() * 1000) % list.length];
9
const
label = () => `${pick(adjectives)} ${pick(colours)} ${pick(nouns)}`;
10
11
let
TR, ID = 1, SEL = 0, SIZE = 0, DATA = [];
Callers
1
label
Function · 0.70
Calls
1
random
Function · 0.50
Tested by
no test coverage detected