Takes the first count elements from the source.
count
Type of items in the source.
Number of elements to take.
Operation 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]
Takes the first
count
elements from the source.