MCPcopy Create free account
hub / github.com/Snapchat/Valdi / byString

Function byString

npm_modules/cli/src/utils/byString.ts:1–3  ·  view source on GitHub ↗
(selector: (v: T) => string)

Source from the content-addressed store, hash-verified

1export function byString<T>(selector: (v: T) => string): (l: T, r: T) => number {
2 return (l, r) => selector(l).localeCompare(selector(r));
3}

Callers 2

buildProjectSyncsFunction · 0.90
collectTsConfigDirsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected