Create New Array From Existing Javascript For Loop