"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var operators_1 = require("rxjs/operators");
/**
* Collects all source emissions and emits them as an array when the source completes.
*
* Get all values inside an array when the source completes
*
*
*
* `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