lib/altshift/promise.js
function (value) {
                    var nextAction = array.shift();
                    if (nextAction) {
                        self.when(nextAction(value), next, deferred.reject);
                    } else {
                        deferred.emitSuccess(value);
                    }
                }
function (value) {
                    var nextAction = array.shift();
                    if (nextAction) {
                        self.when(nextAction(value), next, deferred.reject);
                    } else {
                        deferred.emitSuccess(value);
                    }
                }
function ( value ) { var nextAction = array . shift ( ) ; if ( nextAction ) { self . when ( nextAction ( value ) , next , deferred . reject ) ; } else { deferred . emitSuccess ( value ) ; } }
make a copy
make a copy