Skip to content

selectAt

selectAt<T>(array, indices): T[]

Defined in: select/select-at.ts:10

Returns elements of array at the given indices.

Equivalent to lodash’s _.at. All indices must be valid.

T

readonly T[]

The source array.

readonly number[]

Positions to select.

T[]

A new array of elements at those positions.