code: function hasRest (node) {
      for (var i = 0, child; (child = node.children[i]); i++) {
        if (child.type === "rest") return true;
      }
      return false;
    }
docs: Checks if a rest expression is present in the node's children.