3 ms·
It was the same with Array includes and contains, wasn't it?
by veidelis 5y ago
It was the same with Array includes and contains, wasn't it?
- kretaceous 5y agoAlso, Array.flat was chosen instead of Array.flatten because of a popular 3rd party library's function of the same name. I think it was Lodash.
- abdusco 5y agoIt was mootools. https://developers.google.com/web/updates/2018/03/smooshgate https://developers.google.com/web/updates/2018/03/smooshgate
- mananaysiempre 5y ago... And underscore/lodash use the _(...) wrapper approach pioneered by jQuery’s $(...) precisely to avoid monkey-patching builtin objects like Mootools did (as well as some others I think, but I don’t really remember).
- Izkata 5y agoPrototypeJS also had the monkey-patch approach.