Awful
Good solution
Looks good, but in terms of performance 4 filters, it's tough)
thats tough my guy
great solution! But you could minimize work by returning false at the top of the function if walk's steps are different from 10, I think!
This code is very slow for large arrays. You could easily fix this by checking for walk.length === 10 before executing all the filters.
walk.length === 10
filter
Why you use 4 loops? You can make it in one loop.
Loading collection data...
Awful
Good solution
Looks good, but in terms of performance 4 filters, it's tough)
thats tough my guy
great solution! But you could minimize work by returning false at the top of the function if walk's steps are different from 10, I think!
This code is very slow for large arrays. You could easily fix this by checking for
walk.length === 10
before executing all thefilter
s.Why you use 4 loops? You can make it in one loop.