src/linkProcessors/nextEnvProcessor.js
function lastChain (first, sequence) {
    var index = getIndexOfNextEnvAppearance(first, PromisePipe.env, sequence);
    return index === -1 ? (sequence.length - 1) : (index - 1);
  }
function lastChain (first, sequence) {
    var index = getIndexOfNextEnvAppearance(first, PromisePipe.env, sequence);
    return index === -1 ? (sequence.length - 1) : (index - 1);
  }
function lastChain ( first , sequence ) { var index = getIndexOfNextEnvAppearance ( first , PromisePipe . env , sequence ) ; return index === - 1 ? ( sequence . length - 1 ) : ( index - 1 ) ; }
Return lastChain index
@param   {Number}  first
@return  {Number}
Return lastChain index