packages/solver/lib/simplifyExpression/functionsSearch/index.js
function functions(node) {
  if (!Node.Type.isFunction(node)) {
    return Node.Status.noChange(node);
  }

  for (let i = 0; i < FUNCTIONS.length; i++) {
    const nodeStatus = FUNCTIONS[i](node);
    if (nodeStatus.hasChanged()) {
      return nodeStatus;
    }
  }
  return Node.Status.noChange(node);
}
function functions(node) {
  if (!Node.Type.isFunction(node)) {
    return Node.Status.noChange(node);
  }

  for (let i = 0; i < FUNCTIONS.length; i++) {
    const nodeStatus = FUNCTIONS[i](node);
    if (nodeStatus.hasChanged()) {
      return nodeStatus;
    }
  }
  return Node.Status.noChange(node);
}
function functions ( node ) { if ( ! Node . Type . isFunction ( node ) ) { return Node . Status . noChange ( node ) ; } for ( let i = 0 ; i < FUNCTIONS . length ; i ++ ) { const nodeStatus = FUNCTIONS [ i ] ( node ) ; if ( nodeStatus . hasChanged ( ) ) { return nodeStatus ; } } return Node . Status . noChange ( node ) ; }
Evaluates a function call if possible. Returns a Node.Status object.
Evaluates a function call if possible . Returns a Node . Status object .