• Searches an entire one-dimensional sorted array for a specific value.

    Parameters

    • arr: number[]

      The sorted one-dimensional array to search.

    • x: number

      The value to search for.

    Returns number

    Found value.