javascript set all values in array of object

后端 未结 4 2037
时光说笑
时光说笑 2021-01-03 23:50

Two part question about similar problems. I\'ve got 2 different arrays,

array 1:

 array1 = [{
     name : \"users\",
     checked :          


        
4条回答
  •  一向
    一向 (楼主)
    2021-01-04 00:26

    There is no way to set the value of each object in an array without iterating (looping) through the array as you mentioned in your question.

提交回复
热议问题