lib/util/variable.js
function findVariable(variables, name) {
  let i;
  let len;

  for (i = 0, len = variables.length; i < len; i++) { // eslint-disable-line no-plusplus
    if (variables[i].name === name) {
      return true;
    }
  }

  return false;
}
function findVariable(variables, name) {
  let i;
  let len;

  for (i = 0, len = variables.length; i < len; i++) { // eslint-disable-line no-plusplus
    if (variables[i].name === name) {
      return true;
    }
  }

  return false;
}
function findVariable ( variables , name ) { let i ; let len ; for ( i = 0 , len = variables . length ; i < len ; i ++ ) { // eslint-disable-line no-plusplus if ( variables [ i ] . name === name ) { return true ; } } return false ; }
Search a particular variable in a list
@param {Array} variables The variables list.
@param {Array} name The name of the variable to search.
@returns {Boolean} True if the variable was found, false if not.
Search a particular variable in a list