MCPcopy
hub / github.com/tailwindlabs/tailwindcss / bigSign

Function bigSign

packages/tailwindcss/src/sort.test.ts:112–120  ·  view source on GitHub ↗
(value: bigint)

Source from the content-addressed store, hash-verified

110}
111
112function bigSign(value: bigint) {
113 if (value > 0n) {
114 return 1
115 } else if (value === 0n) {
116 return 0
117 } else {
118 return -1
119 }
120}
121
122function shuffle<T>(arr: T[]): T[] {
123 for (let i = arr.length - 1; i > 0; i--) {

Callers 1

defaultSortFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected