You probably don't need to mess with JS' weird prototype-based object system. $ cat src/**/*.{ts,tsx} | wc -l 27460 $ grep -ri prototype src | wc -l 1
-
-
It was this and I'm not sure why I didn't use spread. This was in the first ~500 lines of Node code I ever wrote so that may be why. - Array.prototype.push.apply(nodes, this.traverse(f, child)) + nodes.push(...this.traverse(f, child))
-
The time where you may legitimately consider doing something like that would be a situation where the object isn’t a legit Array, but React saves you from most of those use cases. http://Array.prototype.forEach.call (document.querySelectorAll(selector), callback)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.