This comment is hidden because it contains spoiler information about the solution
aha....messed up with the regex pattern;)
i printed the input text in the final test.. it's not empty! how is it giving me an error expecting len to be 0?
too difficult, created a nested list
Just click attempt because there are no sample tests.
as per my understanding there wasn't any return statement or any work was defined inside the function so overall the function was undefined.
'join' is a method on an array object. You are not returning an array, so no .join method exists.
Typescript and Julia translations.
Your function has no return statement, maybe.
TypeError: Cannot read property 'join' of undefined
Added random test and approved Ruby version.