MCPcopy Index your code
hub / github.com/dmno-dev/bumpy / pick

Function pick

packages/bumpy/src/utils/names.ts:3–3  ·  view source on GitHub ↗
(arr: T[])

Source from the content-addressed store, hash-verified

1/** Generate a random adjective-noun name for bump files */
2export function randomName(): string {
3 const pick = <T>(arr: T[]) => arr[Math.floor(Math.random() * arr.length)]!;
4 return `${pick(ADJECTIVES)}-${pick(ADJECTIVES)}-${pick(NOUNS)}`;
5}
6

Callers 1

randomNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…