Reduce Object Array Javascript Length Function In Oracle