Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Your guess was right sir, I did not think about that term at all(Reference against New of original array).
Thank you Chrono79
My guess is, you're creating another reference to the original array and mutating it.
I will check it up, I think i did mutate.
--Edit--
After checking, I have switched it to new array which is not mutated, and still having 2 alerts.
1 - Your function should return a new array instead of the original array
2 - Your function should not mutate the input array
But have you not mutated the original array?
---JS version---
Some how this test -> [should be pure, i.e. not mutate the original array] , do not work properly.
I have returned new array, and the first test in this subject is the same as third, but the answer of the third is different from the first.
Any suggestions?
it's a magic))
Please read this paragraph.
This comment is hidden because it contains spoiler information about the solution
Me > finally finishing after few hours
Sad me > should i check other soulutions?
Also me > getting bummed and confused after checking other solutions :(
yes..
Seems though oof
Do you care to explain the proccess of reaching this solution?
Well, in future you will have to have fetch function which takes all the answers and returns it back.
it seems like more test cases will be added :)
Lol, I was like... hey wait a minute here!
wait it`s illegal
Loading more items...