From c9af0cfbf77d515df9aeaa5fde48df5a82022f3e Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Wed, 7 Apr 2021 23:03:59 -0700 Subject: [PATCH] docs: Move Node.matches into the Check methods section --- docs/api/nodes/node.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api/nodes/node.md b/docs/api/nodes/node.md index ac4245b30..67df97a8f 100644 --- a/docs/api/nodes/node.md +++ b/docs/api/nodes/node.md @@ -75,10 +75,6 @@ Return a generator of the nodes in a branch of the tree, from a specific `path`. Options: `{reverse?: boolean}` -#### `Node.matches(root: Node, props: Partial): boolean` - -Check if a node matches a set of `props`. - #### `Node.nodes(root: Node, options?): Generator` Return a generator of all the node entries of a root node. Each entry is returned as a `[Node, Path]` tuple, with the path referring to the node's position inside the root node. @@ -118,3 +114,7 @@ Check if a `value` implements the `Node` interface. #### `Node.isNodeList(value: any): value is Node[]` Check if a `value` is a list of `Node` objects. + +#### `Node.matches(root: Node, props: Partial): boolean` + +Check if a node matches a set of `props`.