News for hackers. Stuff that matters.
Re:When or If by veidelis on Monday March 14, 2022 @02:52PM (#30676503)
It was the same with Array includes and contains, wasn't it?
Re:When or If by kretaceous on Monday March 14, 2022 @02:58PM (#30676603)
Also, 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.
Re:When or If by abdusco on Monday March 14, 2022 @03:05PM (#30676724)
Re:When or If by mananaysiempre on Monday March 14, 2022 @04:06PM (#30677528)
... 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).
Re:When or If by Izkata on Monday March 14, 2022 @04:46PM (#30678044)
PrototypeJS also had the monkey-patch approach.