Well, in your function signature you are expecting a single array argument, so no wonder things aren't working the way they should. Calling toTable([["o"]], true, true) in your case gives:
It seems like you are trying to use map on a non-array type, deducting from the fact that this exception raises inside a call to rowData.map. There is no scenario in which there are other arrays inside a single row of the table. To be perfectly sure, I would need to see your code.
This comment is hidden because it contains spoiler information about the solution
No prob, I'm glad I could help.
Well, in your function signature you are expecting a single array argument, so no wonder things aren't working the way they should. Calling
toTable([["o"]], true, true)
in your case gives:calling
toTable([["lorem", "ipsum"], ["dolor", "sit amet"]], true, true)
:You need to get rid of the square brackets in signature if you want this code to work.
Not a kata issue, yes. @jonnybolt: use the "question" flag, for this kind of things. The error comes from your code.
It seems like you are trying to use map on a non-array type, deducting from the fact that this exception raises inside a call to
rowData.map
. There is no scenario in which there are other arrays inside a single row of the table. To be perfectly sure, I would need to see your code.What error do you get?
You have to complete a kata, and then you'll be able to translate it to other languages.
This comment is hidden because it contains spoiler information about the solution
Manual notification
This comment is hidden because it contains spoiler information about the solution