MrAntunes
7/7/2017 - 6:00 PM

create object with subLevel props, starting from array

create object with subLevel props, starting from array

var array = [r.menu_type, r.menu_group];
				var object = {};
				array.reduce(function(o, s) { return o[s] = {}; }, object);