Your Submissions
You haven't submitted any code for this challenge yet. Solve the problem by passing all the test cases, and your submissions will appear here.
xxxxxxxxxx58
var assert = require('assert');function spiraltraverse(inmatrix) { // fill this in}try { assert.equal( spiraltraverse([ [1, 2, 3, 4, 5, 6], [7, 8, 9, 10, 11, 12], ]), '1,2,3,4,5,6,12,11,10,9,8,7' ); console.log( 'PASSED: `spiraltraverse([[1,2,3,4,5,6], [7,8,9,10,11,12]])` should return `1,2,3,4,5,6,12,11,10,9,8,7 `' );} catch (err) { console.log(err);}try { assert.equal( spiraltraverse([ [1, 2, 3, 4], [5, 6, 7, 8],OUTPUT
Results will appear here.