src/linkProcessors/nextEnvProcessor.js
function getChainIndexById(id, sequence){
    return sequence.map(function(el){
      return el._id;
    }).indexOf(id);
  }
function getChainIndexById(id, sequence){
    return sequence.map(function(el){
      return el._id;
    }).indexOf(id);
  }
function getChainIndexById ( id , sequence ) { return sequence . map ( function ( el ) { return el . _id ; } ) . indexOf ( id ) ; }
Get chain by index
@param {String}  id
@param {Array}   sequence
Get chain by index