Sha256: 0a9b0a865c9b6f1d46fea8b89b0d7f0cab7d79ed2c898a5fb2dfbcb9fb70d267

Contents?: true

Size: 967 Bytes

Versions: 49

Compression:

Stored size: 967 Bytes

Contents

/** 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

Version data entries

49 entries across 49 versions & 4 rubygems

Version Path
ilog-0.4.1 node_modules/rxjs/_esm5/operator/toArray.js
ilog-0.4.0 node_modules/rxjs/_esm5/operator/toArray.js
ilog-0.3.3 node_modules/rxjs/_esm5/operator/toArray.js
govuk_publishing_components-18.0.0 node_modules/rxjs/_esm5/operator/toArray.js
govuk_publishing_components-17.21.0 node_modules/rxjs/_esm5/operator/toArray.js
govuk_publishing_components-17.20.0 node_modules/rxjs/_esm5/operator/toArray.js
govuk_publishing_components-17.19.1 node_modules/rxjs/_esm5/operator/toArray.js
govuk_publishing_components-17.19.0 node_modules/rxjs/_esm5/operator/toArray.js
govuk_publishing_components-17.18.0 node_modules/rxjs/_esm5/operator/toArray.js
govuk_publishing_components-17.17.0 node_modules/rxjs/_esm5/operator/toArray.js
govuk_publishing_components-17.16.0 node_modules/rxjs/_esm5/operator/toArray.js
govuk_publishing_components-17.15.0 node_modules/rxjs/_esm5/operator/toArray.js
govuk_publishing_components-17.14.0 node_modules/rxjs/_esm5/operator/toArray.js
govuk_publishing_components-17.13.0 node_modules/rxjs/_esm5/operator/toArray.js
govuk_publishing_components-17.12.2 node_modules/rxjs/_esm5/operator/toArray.js
govuk_publishing_components-17.12.1 node_modules/rxjs/_esm5/operator/toArray.js
govuk_publishing_components-17.12.0 node_modules/rxjs/_esm5/operator/toArray.js
govuk_publishing_components-17.11.0 node_modules/rxjs/_esm5/operator/toArray.js
govuk_publishing_components-17.10.0 node_modules/rxjs/_esm5/operator/toArray.js
govuk_publishing_components-17.9.0 node_modules/rxjs/_esm5/operator/toArray.js