/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var arr = [[1,2,3],[5,4,3],[7,6,5]]; var out= (function($){ return $.length? String($[0]).concat("\n").concat(arguments.callee($.slice(1))): ""; })(arr); alert(out); /*output: 1,2,3 5,4,3 7,6,5 */