iter-fns - v0.13.0
    Preparing search index...

    Function upperBound

    • Finds the index in an array of the first item which compares greater.

      Type Parameters

      • T

      Parameters

      • xs: T[]

        the array

      • x: T

        the item to find

      • cmp: Compare<T> = compare

        the comparator

      Returns number