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.
I don't think any word should be considered as an anagram for itself. So this example: 'racer' -> ['carer', 'racer'] is looking strange.
if you use assert.strictEqual in your test, do not, it performs shallow check. Use assert.deepEqual instead.
Wrong. Here is the condition:
flatten('a', ['b', 2], 3, null, [[4], ['c']]) // returns ['a', 'b', 2, 3, null, 4, 'c']
This solution converts any item to string, so
flatten('a', ['b', 2], 3, null, [[4], ['c']])
returns['a', 'b', '2', '3', '', '4', 'c']