MCPcopy
hub / github.com/webpack/webpack / getOrd

Function getOrd

test/configCases/inner-graph/issue-12669/module.js:197–207  ·  view source on GitHub ↗
(_)

Source from the content-addressed store, hash-verified

195 */
196
197export function getOrd(_) {
198 return makeOrd(getEqual(_).equals, y => x =>
199 x === y
200 ? 0
201 : O.isSome(x)
202 ? O.isSome(y)
203 ? _.compare(y.value)(x.value)
204 : 1
205 : -1
206 );
207}
208export const filter = predicate => fa =>
209 O.isNone(fa) ? O.none : predicate(fa.value) ? fa : O.none;
210export const filterMap = f => ma => (O.isNone(ma) ? O.none : f(ma.value));

Callers

nothing calls this directly

Calls 2

getEqualFunction · 0.85
compareMethod · 0.80

Tested by

no test coverage detected