+ 1

Converting an array values by obj properties

converting an array full of string to multidimensional array. Ex: var maps = [ "######", "# #", "######" ] var sym = { "#":1, " ":0 } I want to use sym properties replacing all value inside maps like this [ [1,1,1,1,1,1], And so on... ] How can i do that?

7th Jan 2021, 4:06 AM
Tri Satria [NEW]
Tri Satria [NEW] - avatar
1 ответ
7th Jan 2021, 9:34 AM
Ipang