Return to Snippet

Revision: 28226
at July 4, 2010 16:20 by hand4ever


Updated Code
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
*/

Revision: 28225
at July 4, 2010 16:15 by hand4ever


Initial Code
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

Initial URL

                                

Initial Description

                                

Initial Title
output   an array without for or while loop

Initial Tags
format, array

Initial Language
JavaScript