What methods can be used to optimize for loops?

related codes

// 
for (var i = 0,l = res.length; i < l; iPP) {
    if (res[i].intIsDel === 1) {
        res[i]["disabled"] = true res[i]["strName"] = res[i]["strName"] + " " + "()"
    }
    for (var j = 0; j < res[i].listThemeChildren.length; jPP) {
        if (res[i].listThemeChildren[j].intIsDel === 1) {
            res[i].listThemeChildren[j]["disabled"] = true res[i].listThemeChildren[j]["strName"] = res[i].listThemeChildren[j]["strName"] + " " + "()"
        }
        for (var r = 0; r < res[i].listThemeChildren.length; rPP) {
            if (res[i].listThemeChildren[j].listThemeChildren[r].intIsDel === 1) {
                res[i].listThemeChildren[j].listThemeChildren[r]["disabled"] = true res[i].listThemeChildren[j].listThemeChildren[r]["strName"] = res[i].listThemeChildren[j].listThemeChildren[r]["strName"] + " " + "()"
            }
        }
    }
}

problem description

feel that the for loop is too troublesome, think simply,
how to optimize this, recursion? how to write

if it is recursion?
Apr.07,2021

  function recursive(data){
    for (var i = 0,l = data.length; i < l; iPP) {
      let item= data[i]
      if(item.intIsDel === 1){
        item['disabled'] = true
        item['strName'] = item['strName'] + ' ' + '()'
      }
      if(item.listThemeChildren && item.listThemeChildren.length>0){
          recurFn(item.listThemeChildren)
      }
    } 
  }

let arr =[{
  intIsDel:1,
  listThemeChildren:[
    {
      intIsDel:0
    },
    {
      intIsDel:1,
      listThemeChildren:[
        {
          intIsDel:0
        },
        {
          intIsDel:1
        }
      ]
    }
  ]
}];
recursive(arr)
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a63c-2c201.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a63c-2c201.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?