Eugene Lazutkin 7 lat temu
rodzic
commit
1007bf4ebe
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      index.js

+ 1 - 1
index.js

@@ -87,7 +87,7 @@ class Chain extends Duplex {
 
     this.streams = fns
       .filter(fn => fn)
-      .map((fn, index) => {
+      .map((fn, index, fns) => {
         if (typeof fn === 'function' || fn instanceof Array) return Chain.convertToTransform(fn);
         if (
           fn instanceof Duplex ||