JSFiddle - React, Tailwind, and code Playground
JavaScript
console.log($.map([1,2,3], function(t){
var x = [];
for ( var i=0; i < t; i++ ) {
x.push(i);
}
return [ x ];
}));
console.log($.map([1,2,3], function(t){
var x = [];
for ( var i=0; i < t; i++ ) {
x.push(i);
}
return [ x ];
}));