var test = "a.b.c.d"
how to recursively to
a:{
   b:{
     c:{
        d:"test"
       }
     }
   } var test = "a.b.c.d"
how to recursively to
a:{
   b:{
     c:{
        d:"test"
       }
     }
   } Loop algorithm:
 {
      var test = "a.b.c.d";
      let arr = test.split('.');
      let newtest = 'test';
      for(let i = arr.length - 1; i >= 0; i--){
         let obj = {};
         obj[arr[i]] = newtest;
         newtest = obj;
      }
      console.log(newtest);
    }
					Previous: Ios Enterprise signature
Next: Why would python3 change the filter () return value to an iterator object? What are the benefits?
"use strict"; var digui2 = digui; digui = null; digui2(10); function digui(num) { if (num < 2) { return 1; } else { return num * digui(num - 1); } } I know that arguments.callee can be used instead of function n...
A recursive word cannot be written in the work. Ask the master for help and accept a reward. Thank you. Thanks Thanks () has the following data . [{ id: 1 , name: 1 , items: [ { id: 2 , name: 2 , items: [ ...