No need to create an array to call concat
This commit is contained in:
@@ -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),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user