npm package manager

    sortedindex-compare

    0.0.1 • Public • Published

    sortedIndex-compare

    A fork of underscore/lodash.sortedIndex to use a comparison function instead of a ranking function.

    Example usage

    function compare(a, b) {
        return b-a;
    }
    var values = [1,5,10];
    var index = sortedIndex(values, 6, compare); //index is 2

    See test.js for all use cases and index.js for jsdoc. The thisArg argument is not supported in this fork.

    Install

    npm i sortedindex-compare

    DownloadsWeekly Downloads

    0

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • bwindels