We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2a0115 commit d34af80Copy full SHA for d34af80
website/guide/api-usage/js-api.md
@@ -140,12 +140,12 @@ empty.length === 0 // true
140
// find i.e. `console.log("hello world")` using a NapiConfig
141
const node = root.find({
142
rule: {
143
- pattern: "console.log($A)",
+ pattern: "console.log($A)"
144
},
145
constraints: {
146
A: { regex: "hello" }
147
}
148
-});
+})
149
```
150
151
Note, `find` returns `null` if no node is found. `findAll` returns an empty array if nothing matches.
0 commit comments