ClarkySmiverz77 ClarkySmiverz77 - 1 year ago 97
Javascript Question

Javascript - traversing through object and updating property

I'm hoping someone can point me in the right direction.

I have a JavaScript object like the following ...

Answer Source
function traverseCategoryTree(categories) {
  for (var i = 0, len = categories.length; i < len; i++) {
    if (categories[i].subcategories) {

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download