{"ScriptPreparationCode":"var max1 = 100000; // 100,000 (100 Thousand)\r\nvar max2 = 10000000; // 10,000,000 (10 Million)\r\nvar max3 = 100000000; // 100,000,000 (100 Million)\r\n\r\nvar arr1 = [];\r\n//for (var i = 0; i \u003C= max1; i\u002B\u002B) { arr1.push(i); }\r\n\r\nvar arr2 = [];\r\nfor (var i = 0; i \u003C= max1; i\u002B\u002B) { arr2.push(i); }\r\n\r\nvar arr3 = [];\r\n//for (var i = 0; i \u003C= max3; i\u002B\u002B) { arr3.push(i); }","TestCases":[{"Name":"Native","Code":"const target = {};\r\nconst segments = [\u0027pouet\u0027, \u0027toto\u0027];\r\narr2.forEach(function (element, index) {\r\n \tlet pointer = target;\r\n let thisSegments = [...segments, index];\r\n for (const segment of thisSegments)\u00A0{\r\n pointer[segment]\u00A0= pointer[segment] ||\u00A0{};\r\n pointer = pointer[segment];\r\n }\r\n pointer = index;\r\n});","IsDeferred":false},{"Name":"Lodash.js filter","Code":"const target = {};\r\nconst segments = [\u0027pouet\u0027, \u0027toto\u0027];\r\narr2.forEach(function (element, index) {\r\n \tlet thisSegments = [...segments, index];\r\n _.set(target, thisSegments, index);\r\n});","IsDeferred":false}]}