var Stream = require('stream');

module.exports = function Sequence (options, sequence) {

    options = options || {};

    var seq = Stream.Transform({
        objectMode: typeof options.objectMode === 'undefined' ? true : !!options.objectMode,
        transform: function (chunk, enc, next) {

            // once handler
            if (this.called && sequence[3]) {
                return next(null, chunk);
            }

            this.called = true;

            options._ = sequence[1];
            process.nextTick(sequence[0][1].bind(sequence[0][0], options, chunk, next, this, enc));
        }
    });

    return seq;
};

@@ -1,11 +1,13 @@
-var
+const
  Stream 
@@ -48,26 +48,8 @@
 ts =
- function Sequence
  (op
@@ -64,16 +64,19 @@
 equence)
+ =%3E
  %7B%0A%0A    
@@ -109,17 +109,14 @@
     
-var seq =
+return
  Str
@@ -246,17 +246,8 @@
 orm:
- function
  (ch
@@ -261,16 +261,19 @@
 c, next)
+ =%3E
  %7B%0A%0A    
@@ -590,25 +590,8 @@
  %7D);
-%0A%0A    return seq;
 %0A%7D;%0A

update syntax