Swift Loop Through Array Javascript Example Push