Answer the question
In order to leave comments, you need to log in
Mini compatibility libraries (Function.prototype.bind, Array.prototype.map, etc.)
Recently, an article was published mini-library compatibility.js where in the comments everyone broke out with reports that each of the libraries had some kind of bind-related bug, for example.
I have always been sure that such functions are written ironically and without bugs.
In short, the question is: what kind of library to choose , so as not to suddenly run into some such bug and not spend hours searching for it? Or is the question still open and you just need to wrap all these functions in a wrapper for your interface and then when you still find a bug-free library, slip it exactly?
Answer the question
In order to leave comments, you need to log in
As for bind, this is a bug not in the library, but in the specification, let's say so - native implementations behave the same way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question