MCPcopy Create free account
hub / github.com/chakra-ui/panda / gte

Function gte

scripts/setup-trusted-publishing.mjs:231–239  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

229}
230
231function gte(a, b) {
232 const pa = a.split('.').map(Number)
233 const pb = b.split('.').map(Number)
234 for (let i = 0; i < 3; i++) {
235 if ((pa[i] ?? 0) > (pb[i] ?? 0)) return true
236 if ((pa[i] ?? 0) < (pb[i] ?? 0)) return false
237 }
238 return true
239}
240
241function sleep(ms) {
242 Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms)

Callers 1

resolveNpmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected