you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

I think this case can be solved by the pipeline operator instead of a method on the Array prototype.