MCPcopy Index your code
hub / github.com/npm/node-semver / lowerLT

Function lowerLT

ranges/subset.js:238–247  ·  view source on GitHub ↗
(a, b, options)

Source from the content-addressed store, hash-verified

236
237// <=1.2.3 is higher than <1.2.3
238const lowerLT = (a, b, options) => {
239 if (!a) {
240 return b
241 }
242 const comp = compare(a.semver, b.semver, options)
243 return comp < 0 ? a
244 : comp > 0 ? b
245 : b.operator === '<' && a.operator === '<=' ? b
246 : a
247}
248
249module.exports = subset

Callers 1

simpleSubsetFunction · 0.85

Calls 1

compareFunction · 0.85

Tested by

no test coverage detected