lib/simplifyExpression/basicsSearch/index.js
// Look for basic step(s) to perform on a node. Returns a Node.Status object.
Look for basic step(s) to perform on a node.
Look for basic step ( s ) to perform on a node .
function basics(node) {
  for (let i = 0; i < SIMPLIFICATION_FUNCTIONS.length; i++) {
    const nodeStatus = SIMPLIFICATION_FUNCTIONS[i](node);
    if (nodeStatus.hasChanged()) {
      return nodeStatus;
    }
    else {
      node = nodeStatus.newNode;
    }
  }
  return Node.Status.noChange(node);
}
function basics ( node ) { for ( let i = 0 ; i < SIMPLIFICATION_FUNCTIONS . length ; i ++ ) { const nodeStatus = SIMPLIFICATION_FUNCTIONS [ i ] ( node ) ; if ( nodeStatus . hasChanged ( ) ) { return nodeStatus ; } else { node = nodeStatus . newNode ; } } return Node . Status . noChange ( node ) ; }
Look for basic step(s) to perform on a node.
Look for basic step ( s ) to perform on a node .