lib/generate/generateBigInt.js
function getLevel(base, index) {
  var level = (0, _bigInteger2.default)('0');
  var current = index;
  var parent = void 0;
  while (current.gt(zero)) {
    parent = current.prev().divide(base);
    level = level.next();
    current = parent;
  }

  return level;
}
function getLevel(base, index) {
  var level = (0, _bigInteger2.default)('0');
  var current = index;
  var parent = void 0;
  while (current.gt(zero)) {
    parent = current.prev().divide(base);
    level = level.next();
    current = parent;
  }

  return level;
}
function getLevel ( base , index ) { var level = ( 0 , _bigInteger2 . default ) ( '0' ) ; var current = index ; var parent = void 0 ; while ( current . gt ( zero ) ) { parent = current . prev ( ) . divide ( base ) ; level = level . next ( ) ; current = parent ; } return level ; }
calculates the level of a given index in the current virtual tree
calculates the level of a given index in the current virtual tree