![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mets.corals.io/wp-content/themes/metras/node_modules/rxjs/_esm5/operator/ |
/** PURE_IMPORTS_START .._operators_toArray PURE_IMPORTS_END */ import { toArray as higherOrder } from '../operators/toArray'; /** * Collects all source emissions and emits them as an array when the source completes. * * <span class="informal">Get all values inside an array when the source completes</span> * * <img src="./img/toArray.png" width="100%"> * * `toArray` will wait until the source Observable completes * before emitting the array containing all emissions. * When the source Observable errors no array will be emitted. * * @example <caption>Create array from input</caption> * const input = Rx.Observable.interval(100).take(4); * * input.toArray() * .subscribe(arr => console.log(arr)); // [0,1,2,3] * * @see {@link buffer} * * @return {Observable<any[]>|WebSocketSubject<T>|Observable<T>} * @method toArray * @owner Observable */ export function toArray() { return higherOrder()(this); } //# sourceMappingURL=toArray.js.map