Matrix wherever you find a string replace by 1 then increment by 1 otherwise found null put 0 and show the new matrix JavaScript for loop generic code

前端 未结 0 1801
梦毁少年i
梦毁少年i 2020-12-19 17:41

Hey guys in short i have this 4x4 Matrix input

Matrix = [
  ["X", "X", null, null],
  [null, "X", "X", "X"],         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题