Skip to content

Commit

Permalink
docs: add description for nodes api
Browse files Browse the repository at this point in the history
  • Loading branch information
morinokami authored and Daniel15 committed Jul 12, 2024
1 parent 6d2cf65 commit 0994ad8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions website/src/content/docs/build/api-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,16 @@ console.log(varCount); // 3

```

### **`nodes`**

Returns the AST nodes in the collection.

**Example**:

```jsx
const nodes = j.find(j.VariableDeclaration).nodes();
```

### **`paths`**

Returns the paths of the found nodes.
Expand Down

0 comments on commit 0994ad8

Please sign in to comment.