Flatten Array Of Arrays Using Javascript Reduce Object