News for hackers. Stuff that matters.
Re:Cash: An absurdly small jQuery alternative for modern bro... by theandrewbailey on Sunday November 03, 2024 @07:54AM (#42032783)

    NodeList.prototype.__proto__ = Array.prototype;
Problem solved without Array.from().
Re:Cash: An absurdly small jQuery alternative for modern bro... by cr125rider on Sunday November 03, 2024 @08:16AM (#42032898)
Does the underlying data structure work okay with that? I would assume there is some sort of lazy iterator involved that may not work with array methods, or only work once.

This is JavaScript though…

Re:Cash: An absurdly small jQuery alternative for modern bro... by jazzypants on Sunday November 03, 2024 @09:36AM (#42033285)
Prototype pollution is bad. We learned this over a decade ago.