• Returns true if x is monotonic.

    Parameters

    • array: NumberArray

      array of numbers.

    Returns -1 | 0 | 1

    1 if monotonic increasing, -1 if monotonic decreasing, 0 if not monotonic.