I passed the test but I get two errors when I attempt the solution. The problem is, I don't know what the inputs are. I am unable to debug the test at this point. Printing the console log does not help as it does not clearly show which ones are arrays among the test inputs. Maybe I am unclear about the expected results of sparse array but at this point I find it difficult to debug my code. Does anyone have a useful tip or pointer that could help me?
FIRST ERROR:
Should return a split array: [[null],[null,null,0,""],[[null,null,null],[]]]
Log
Given array: ,,,,,,,,,,,,,,,,,,,,,,,,,,,,, END OF GIVEN
Result: ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
SECOND ERROR:
Should return a split array: []
Log
Given array: 1,2,,3,4,,5,6,,7,8,,9 END OF GIVEN
Result: 1,2,3,4,5,6,7,8,,9
I passed the test but I get two errors when I attempt the solution. The problem is, I don't know what the inputs are. I am unable to debug the test at this point. Printing the console log does not help as it does not clearly show which ones are arrays among the test inputs. Maybe I am unclear about the expected results of sparse array but at this point I find it difficult to debug my code. Does anyone have a useful tip or pointer that could help me?
FIRST ERROR:
Should return a split array: [[null],[null,null,0,""],[[null,null,null],[]]]
Log
Given array: ,,,,,,,,,,,,,,,,,,,,,,,,,,,,, END OF GIVEN
Result: ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
SECOND ERROR:
Should return a split array: []
Log
Given array: 1,2,,3,4,,5,6,,7,8,,9 END OF GIVEN
Result: 1,2,3,4,5,6,7,8,,9
Got it. Thanks dude
This comment is hidden because it contains spoiler information about the solution