forEach

The forEach loop has the benefit that you don't have to declare indexing and entry variables in the containing scope, as they're supplied as arguments to the iteration function, and so nicely scoped to just that iteration.

          var a = ["a", "b", "c"];
a.forEach(function(o) {
    NSOA.meta.alert(o);
}); 

        

See also: