Allows you to throw DOMException-like errors. Usefull when implementing a polyfill (like this).
Idea based on this fiddle by Marcos Cáceres'
A data type that looks and acts like DOMException, but you can choose the code.
Homepage Repository JavaScript
bower install custom-dom-exception
Allows you to throw DOMException-like errors. Usefull when implementing a polyfill (like this).
Idea based on this fiddle by Marcos Cáceres'