Convert objects in a javascript multidimensional array to an array

the files in this are SHP coordinates, coordinate reading format [xxxxx,yyyyy], [xxxxxx,yyyyy], how to convert the coordinates in the diagram into the format of a multi-dimensional array. Is there any better way to push, after the for loop?


var ret = arr.map(items => items.map(item => [item.x, item.y]))
console.log(ret)

this may not be a tricky way, either way, the essence is to traverse and add.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b7f4-2c2b5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b7f4-2c2b5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?