Skip to content

Commit 8c0a649

Browse files
Roang-zero1wooorm
andcommitted
Add clarification on differences of is.convert
Closes GH-13. Reviewed-by: Christian Murphy <[email protected]> Co-authored-by: Titus Wormer <[email protected]>
1 parent ae71834 commit 8c0a649

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ Create a test function from `test`, that can later be called with a `node`,
9090
Useful if you’re going to test many nodes, for example when creating a utility
9191
where something else passes an is-compatible test.
9292

93+
The created function is slightly faster because it expects valid input only.
94+
Therefore, passing invalid input, yields unexpected results.
95+
9396
Can also be accessed with `require('unist-util-is/convert')`.
9497

9598
For example:

0 commit comments

Comments
 (0)