angular extend forEach