MCPcopy
hub / github.com/browserslist/browserslist / compare

Function compare

index.js:139–143  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

137}
138
139function compare(a, b) {
140 if (a < b) return -1
141 if (a > b) return +1
142 return 0
143}
144
145function compareSemver(a, b) {
146 return (

Callers 2

compareSemverFunction · 0.85
browserslistFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…