Oracle Loop Through Array Javascript Iteration