function evaluateByOperator(operator) {
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];

  operator = operator.toUpperCase();

  if (!availableOperators[operator]) {
    throw Error(_error.ERROR_NAME);
  }

  return availableOperators[operator].apply(availableOperators, params);
}
Evaluate values by operator id.git

@param {String} operator Operator id.
@param {Array} [params=[]] Arguments to evaluate.
@returns {*}