File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ find(node, condition)
74
74
75
75
Return the first node that matches ` condition ` , or ` undefined ` if no node matches.
76
76
77
- * ` node ` (` [Node](https://github.com/wooorm/unist#node) ` ) - Node to search
78
- * ` condition ` (` string ` , ` object ` or ` function ` ) - Condition used to test each node. Behaviour depends on the type of the condition:
77
+ - ` node ` (` [Node](https://github.com/wooorm/unist#node) ` ) - Node to search
78
+ - ` condition ` (` string ` , ` object ` or ` function ` ) - Condition used to test each node. Behaviour depends on the type of the condition:
79
79
- ` string ` finds first node with a truthy property matching ` string `
80
80
- ` object ` finds first node that has matching values for all properties of ` object `
81
81
- ` function ` finds first node for which ` function ` returns true when passed ` node ` as argument
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " unist-find" ,
3
- "version" : " 1.0.0 " ,
3
+ "version" : " 1.0.1 " ,
4
4
"description" : " Unist node finder. Useful for working with remark, rehype and retext." ,
5
5
"repository" : " https://github.com/blahah/unist-find" ,
6
6
"main" : " index.js" ,
You can’t perform that action at this time.
0 commit comments