function getVariable(variables, name) {
  return variables.find((variable) => variable.name === name);
}
Find and return a particular variable in a list
@param {Array} variables The variables list.
@param {string} name The name of the variable to search.
@returns {Object} Variable if the variable was found, null if not.