Replace console.log( x );
with result.push( x[0] );
and add var result = [];
before your loop. Then result
will contain the array you want when the loop completes.
1
solved create array from returned values
Replace console.log( x );
with result.push( x[0] );
and add var result = [];
before your loop. Then result
will contain the array you want when the loop completes.
1
solved create array from returned values