skip to Main Content

JavaScript passing values breaks loop

I have the following code: let j = 0; for(i = 0; i < board[0].length; i++) { j = i; check_row(board[i], i, tiles); i = j; } The board is an array containing 5 arrays of size 5: [[0,1,2,3,4],[0,1,2,3,4],[0,1,2,3,4],[0,1,2,3,4],[0,1,2,3,4]] Tiles…

VIEW QUESTION

Javascript – How transform a string in a bidimensonal array in js

I have to convert/transform a "string of values" in a "bidimensional array". String structure original=LatLng(46.20467, 13.34764),LatLng(46.20467, 13.34767),LatLng(46.20467, 13.34772),LatLng(46.20469, 13.34782),LatLng(46.20471, 13.34786),LatLng(46.20492, 13.34842),LatLng(46.20499, 13.34865),LatLng(46.20502, 13.34888),LatLng(46.20502, 13.34909),LatLng(46.205, 13.34953),LatLng(46.20503, 13.34969),LatLng(46.20516, 13.34992),LatLng(46.20572, 13.35065),LatLng(46.20576, 13.35075),LatLng(46.20576, 13.3508),LatLng(46.20573, 13.35092),LatLng(46.20565, 13.35101)... Array structure will be LatLong_completo = [[46.20467, 13.34764],[46.20467,…

VIEW QUESTION
Back To Top
Search