UNPKG

sorting-lib

Version:

A library that makes sorting easier by introducing `Comparator`

8 lines (7 loc) 240 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.comparePrimitive = void 0; var comparePrimitive = function (a, b) { return a > b ? 1 : a < b ? -1 : 0; }; exports.comparePrimitive = comparePrimitive;