Skip to content

Commit d34af80

Browse files
Update js-api.md
1 parent f2a0115 commit d34af80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/guide/api-usage/js-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,12 @@ empty.length === 0 // true
140140
// find i.e. `console.log("hello world")` using a NapiConfig
141141
const node = root.find({
142142
rule: {
143-
pattern: "console.log($A)",
143+
pattern: "console.log($A)"
144144
},
145145
constraints: {
146146
A: { regex: "hello" }
147147
}
148-
});
148+
})
149149
```
150150

151151
Note, `find` returns `null` if no node is found. `findAll` returns an empty array if nothing matches.

0 commit comments

Comments
 (0)