Source

array/getArraySortNumber.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * Get the number the callback of Array.sort()
 * @category array
 * @module getArraySortNumber
 */
function getArraySortNumber(a, b) {
    if (a === b)
        return 0;
    return a > b ? 1 : -1;
}
exports.default = getArraySortNumber;