MCPcopy Create free account
hub / github.com/remix-run/react-router / order

Function order

scripts/changes/changes.ts:341–345  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

339
340function packageNameComparator(a: string, b: string) {
341 const order = (name: string): [number, string] => {
342 if (name === "react-router") return [0, name];
343 if (name.startsWith("@react-router/")) return [1, name];
344 return [2, name];
345 };
346
347 const [orderA, nameA] = order(a);
348 const [orderB, nameB] = order(b);

Callers 1

packageNameComparatorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected