After I submitted my solution I realized it doesn't work if the gnerator not a range (i.e. 1,5,32,4). It might be a good idea to add test cases if you want to keep with that earlier requirement. Also, what other people where saying about the prime numbers- The prime number function in the tests needs a guard clause for 1 (and tests updated). Loving this series by the way!
The initial object should be affected too, as it's said in the description
In ruby (at least), there's a fixed tests on negative number, however the description does not mention anything about handling that !
The description is not alike, number ranges also vary from language to language and this is a general coding interview problem as well, sooo closing...
I didn't understand how word[index] worked into map. Anyone could explain me it?
I hace the same problem in the lasts tests...
TypeError: Cannot read property 'map' of undefined
Nice kata, anyway!
PS. Finally, solved... Stupid mistake!
isn't that a duplicate of class list?
@Talrendis Haha, nice one xD
Idk how this is 5kyu but was a nice problem to solve...
This comment is hidden because it contains spoiler information about the solution
Interesting task, it makes think too much. Great work!
Не, ты только глянь - стоит написать простыню, а тут решение в 5 строк. Ну, incredible monsters of *** js.
Ребятки, вы с ней здорово поиграетесь, я гарантирую Вам)