Function extent

  • Return the min and max simultaneously.

    Parameters

    • iterable: Iterable<string>

    Returns [string, string] | [undefined, undefined]

  • Return the min and max simultaneously.

    Type Parameters

    Parameters

    • iterable: Iterable<T>

    Returns [T, T] | [undefined, undefined]

  • Return the min and max simultaneously.

    Type Parameters

    • T

    Parameters

    • iterable: Iterable<T>
    • accessor: ((datum, index, array) => string)
        • (datum, index, array): string
        • Parameters

          • datum: T
          • index: number
          • array: Iterable<T>

          Returns string

    Returns [string, string] | [undefined, undefined]

  • Return the min and max simultaneously.

    Type Parameters

    Parameters

    • iterable: Iterable<T>
    • accessor: ((datum, index, array) => U)
        • (datum, index, array): U
        • Parameters

          • datum: T
          • index: number
          • array: Iterable<T>

          Returns U

    Returns [U, U] | [undefined, undefined]