Rx.Observable.prototype.bufferWithCount(count, [skip])

bufferWithCount

Projects each element of an observable sequence into zero or more buffers which are produced based on element count information.

参数

  1. count (Function): Length of each buffer.
  2. [skip] (Function): Number of elements to skip between creation of consecutive buffers. If not provided, defaults to the count.

返回值

(Observable): An observable sequence of buffers.

Without a skip

Using a skip