But it was with a language where libraries are written with generic iteration. Yes arrays are used heavily but only stack allocation for this example, with early exits and multiple filtering.
But your context is Javascript, and context is important because as you point out it costs where functional languages can play tricks.
I just want to note that JS could be a better language if they'd just learn from others, and the community could get behind doing things better.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Interesting as I responded to a similar inquiry.
forum.dlang.org/post/suinxiufqltip...
But it was with a language where libraries are written with generic iteration. Yes arrays are used heavily but only stack allocation for this example, with early exits and multiple filtering.
But your context is Javascript, and context is important because as you point out it costs where functional languages can play tricks.
I just want to note that JS could be a better language if they'd just learn from others, and the community could get behind doing things better.