- extent(iterable): [string, string] | [undefined, undefined]
Parameters
iterable: Iterable<string>
Returns [string, string] | [undefined, undefined]
- extent<T>(iterable): [T, T] | [undefined, undefined]
Returns [T, T] | [undefined, undefined]
- extent<T>(iterable, accessor): [string, string] | [undefined, undefined]
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]
- extent<T, U>(iterable, accessor): [U, U] | [undefined, undefined]
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]
Return the min and max simultaneously.