No need to create an array to call concat

This commit is contained in:
Lewis Diamond 2020-07-12 18:52:21 -04:00
parent 12cbddf7e0
commit 1c02cb5aea

View File

@ -99,7 +99,7 @@ class Demux extends Duplex {
}
public _flush() {
const pipelines: DemuxStreams[] = [].concat.apply(
const pipelines: DemuxStreams[] = Array.prototype.concat.apply(
[],
Object.values(this.streamsByKey),
);