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.
this issue is not reproducible - the kata is currently solvable. this is likely due to changes in the Node.JS environment / code runner setup for JS on Codewars (perhaps because Babel is no longer used - though I cannot replicate the issue even with the old
Node v8.1.3/Babel
version. But it would still be solvable even without that specific feature.this issue is not reproducible.
works fine for this kata
The sample tests use
assertSimilar
while the submission tests useassertDeepEquals
. These assertions have slightly differing semantics:extend
ingArray
, I pass the full tests but I fail thegetSplit
sample test:suggested tag:
restricted
and yet I like my solution better
This comment is hidden because it contains spoiler information about the solution
JS: Node v14 should be used along with its appropiate assertion tools (Mocha + Chai).
Refer to this and this
Very creative, I wish I could think similar solutions involving many methods
This description makes zero sense; the expected behavior is extracting the
n
'th element of an array.This is not enforced.
alr added some time ago
Maybe I'm looking at this wrong but is this finding the index of a letter in a string in an array in the c.indexOf portion?
Very funny kata.. thanks:)
using filter you loop 2 times on the arr. using reduce is the best practice !
This doesn't seem to be tested at all.
Loading more items...