Environment agnostic nextTick polyfill
To be used in environment agnostic modules that need nextTick functionality.
- When run in Node.js
- In modern engines, microtask resolution is guaranteed by
- In older browsers,
MutationObserveris used as a fallback
- In other engines
setTimeout(fn, 0)is used as fallback.
- If none of the above is supported module resolves to
In your project path:
$ npm install next-tick
$ npm test
Security contact information
To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.