MCPcopy Index your code
hub / github.com/nodejs/node / or

Function or

deps/npm/lib/utils/explain-eresolve.js:49–51  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

47 ].filter(Boolean)
48
49 const or = (arr) => arr.length <= 2
50 ? arr.join(' or ') :
51 arr.map((v, i, l) => i + 1 === l.length ? `or ${v}` : v).join(', ')
52
53 const fix = `Fix the upstream dependency conflict, or retry this command with ${or(flags)} to accept an incorrect (and potentially broken) dependency resolution.`
54

Callers 1

reportFunction · 0.70

Calls 2

mapMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected