You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@joaocferreira.splice() method will return an array. But in general, splice is not really good method for "functional-javascript-workshop" (it mutates the original array).
This will pass you a test, but technically solution is not 100% complete, as callback fn is not satisfying requirement:
fn: Function to use as the reduction step. Like regular Array#reduce, this function must be passed previousValue, currentValue, index and the array we're iterating over.
I did this solution that seems to do what is expected but fails on the tests. Can anyone point what i may be missing?
The text was updated successfully, but these errors were encountered: