This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
angular.forEach fails silently when passed 'undefined' reference #9062
Closed
Description
Angular's implementation of forEach fails silently when passed and undefined reference. Example here: http://plnkr.co/3TrVkuC6mLi8pAapIWvn
Native implementations throw a TypeError when the reference is undefined: http://plnkr.co/2KfVwdIuRuno0DWwmV7N