Sounds like a valid point there.
I'd still use a spray syntax over abstract [].filter.call as to promote readability (unless serious performance is gained)
[].filter.call
Sure, and if you use Typescript, with spray syntax the compiler can know about the type of the array and provide typing information.
If you're concerned with performance then manually iterating through the array is always the best option.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
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.
Sounds like a valid point there.
I'd still use a spray syntax over abstract
[].filter.call
as to promote readability (unless serious performance is gained)Sure, and if you use Typescript, with spray syntax the compiler can know about the type of the array and provide typing information.
If you're concerned with performance then manually iterating through the array is always the best option.