Returns an array with the specified number of contiguous elements from the end of an observable sequence.
count
(Number
): Number of elements to bypass at the end of the source sequence.
(Observable
): An observable sequence containing a single array with the specified number of elements from the end of the source sequence.
var source = Rx.Observable.range(0, 5)
.takeLastBuffer(3);
var subscription = source.subscribe(
function (x) {
console.log('Next: ' + x);
},
function (err) {
console.log('Error: ' + err);
},
function () {
console.log('Completed');
});
// => Next: 2,3,4
// => Completed
File:
Dist:
Prerequisites:
- None
NPM Packages:
NuGet Packages:
Unit Tests: