Skip to content

Commit 09b7cb6

Browse files
committed
docs: add another example in the docs
1 parent 781e7dd commit 09b7cb6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

reference/functions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ jsonquery(data, 'pick(.name, .address.city)')
267267
const item = { "product": "milk", "price": 2 }
268268

269269
jsonquery(item, 'pick(.price)') // { "price": 2 }
270+
jsonquery(item, 'get(.price)') // 2
270271
```
271272

272273
## map

0 commit comments

Comments
 (0)