How to sort array in JS for Leaflet map and then rtim itSPsweeta pandey4yAsked Oct 23, 2022, 5:18 PM936JavaScripthelp
Abhishek Yadav4y agoPosted Oct 23, 2022, 5:19 PMAccepted answer let arr = [] polylineTimestamp.forEach((el) => { arr.push([el[0],el[1]]) }) console.log(arr) //! expected output would be arr = [ [ 37.781814, -122.40474 ], [ 37.781719, -122.404637 ], [ 37.781489, -122.404949 ], [ 37.780704, -122.403945 ], [ 37.780012, -122.404827 ] ]+4
Abhishek YadavPosted Oct 23, 2022, 5:19 PM