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.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”readonly T[]
The source array.
indices
Section titled “indices”readonly number[]
Positions to select.
Returns
Section titled “Returns”T[]
A new array of elements at those positions.