Some differences between js forEach() and jquery each().