We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is actually not a polyfill but a ponyfill which then is misleading in the way how to use it.
From a polyfill you would expect to import it like this and all is done:
import 'node-contains';
Instead you will need you use it like this:
import contains from 'node-contains'; if (contains(node, anotherNode)) { /* ... */ }
So, please either make it a polyfill by patching Node.prototype or call it a ponyfill.
Node.prototype
ponyfill
Of course, best would be to create some kind of documentation... ;-)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is actually not a polyfill but a ponyfill which then is misleading in the way how to use it.
From a polyfill you would expect to import it like this and all is done:
Instead you will need you use it like this:
So, please either make it a polyfill by patching
Node.prototype
or call it aponyfill
.Of course, best would be to create some kind of documentation... ;-)
The text was updated successfully, but these errors were encountered: