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 91df0c6 commit e6796d4Copy full SHA for e6796d4
readme.md
@@ -15,7 +15,7 @@ npm install hast-util-is-element
15
```javascript
16
var is = require('hast-util-is-element');
17
18
-isElement({type: 'text', value: 'foo'}); //=> false
+is({type: 'text', value: 'foo'}); //=> false
19
20
is({type: 'element', tagName: 'a'}, 'a'); //=> true
21
@@ -36,9 +36,9 @@ included in the second parameter.
36
37
* `node` (`*`) — Value to check;
38
* `tagName` (`string`, optional) — Value `node`s `tagName` must match;
39
-* `tagNames` (`string`, optional) — Value including `node`s `tagName`.
+* `tagNames` (`Array.<string>`, optional) — Value including `node`s `tagName`.
40
41
-######Returns
+###### Returns
42
43
`boolean` — whether `node` passes the test.
44
0 commit comments