toArray.js 336 B

123456789
  1. import { reduce } from './reduce';
  2. import { operate } from '../util/lift';
  3. var arrReducer = function (arr, value) { return (arr.push(value), arr); };
  4. export function toArray() {
  5. return operate(function (source, subscriber) {
  6. reduce(arrReducer, [])(source).subscribe(subscriber);
  7. });
  8. }
  9. //# sourceMappingURL=toArray.js.map