Skip to content

Commit e6796d4

Browse files
committed
Fix typo’s
1 parent 91df0c6 commit e6796d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install hast-util-is-element
1515
```javascript
1616
var is = require('hast-util-is-element');
1717

18-
isElement({type: 'text', value: 'foo'}); //=> false
18+
is({type: 'text', value: 'foo'}); //=> false
1919

2020
is({type: 'element', tagName: 'a'}, 'a'); //=> true
2121

@@ -36,9 +36,9 @@ included in the second parameter.
3636

3737
* `node` (`*`) — Value to check;
3838
* `tagName` (`string`, optional) — Value `node`s `tagName` must match;
39-
* `tagNames` (`string`, optional) — Value including `node`s `tagName`.
39+
* `tagNames` (`Array.<string>`, optional) — Value including `node`s `tagName`.
4040

41-
######Returns
41+
###### Returns
4242

4343
`boolean` — whether `node` passes the test.
4444

0 commit comments

Comments
 (0)