Browse Source

Minor bugfix.

Eugene Lazutkin 7 năm trước cách đây
mục cha
commit
1007bf4ebe
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 ||