lib/command-line-arguments.js
function isLastLevel(arr){
  //console.log("isLastLevel(" + arr + ")");
  if(!arr){
    return true;
  }
  for(var i = 0; i < arr.length; i++){
    if(typeof arr[i] === 'number');
    else if(arr[i].substring(0,1) === '-'){
      //console.log("->false");
      return false;
    }
  }
  //console.log("-> true");
  return true;
}
function isLastLevel(arr){
  //console.log("isLastLevel(" + arr + ")");
  if(!arr){
    return true;
  }
  for(var i = 0; i < arr.length; i++){
    if(typeof arr[i] === 'number');
    else if(arr[i].substring(0,1) === '-'){
      //console.log("->false");
      return false;
    }
  }
  //console.log("-> true");
  return true;
}
function isLastLevel ( arr ) { //console.log("isLastLevel(" + arr + ")"); if ( ! arr ) { return true ; } for ( var i = 0 ; i < arr . length ; i ++ ) { if ( typeof arr [ i ] === 'number' ) ; else if ( arr [ i ] . substring ( 0 , 1 ) === '-' ) { //console.log("->false"); return false ; } } //console.log("-> true"); return true ; }
Returns true if there are no more sublevels after current level
Returns true if there are no more sublevels after current level