MCPcopy Create free account
hub / github.com/EvoMap/evolver / _compareBootstrapNumeric

Function _compareBootstrapNumeric

index.js:13–18  ·  view source on GitHub ↗
(left, right)

Source from the content-addressed store, hash-verified

11}
12
13function _compareBootstrapNumeric(left, right) {
14 if (left.length !== right.length) return left.length - right.length;
15 if (left < right) return -1;
16 if (left > right) return 1;
17 return 0;
18}
19
20function _compareBootstrapPrerelease(left, right) {
21 const leftNumeric = /^\d+$/.test(left);

Callers 2

_compareBootstrapSemverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected