Create Array Using Loop Javascript Object Restructuring Meaning