Emits up to count number of the last values.
count
import {pipe, takeLast} from 'iter-ops';const i = pipe( [1, 2, 3, 4, 5], takeLast(2));console.log(...i); //=> 4, 5 Copy
import {pipe, takeLast} from 'iter-ops';const i = pipe( [1, 2, 3, 4, 5], takeLast(2));console.log(...i); //=> 4, 5
Emits up to
count
number of the last values.