Returns an OperationFunction that takes the first count elements from the source.
count
Type of items in the source.
Number of elements to take.
An OperationFunction that takes the first count elements from the source.
const result = take<number>(2)([1, 2, 3, 4]);console.log([...result]); // [1, 2] Copy
const result = take<number>(2)([1, 2, 3, 4]);console.log([...result]); // [1, 2]
Returns an OperationFunction that takes the first
countelements from the source.