// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
Google / Android
Python / IronPython
SQL Server
AJAX Source Viewer
View the source code of a Method from ASP.NET AJAX Library. Choose a method from the menu items above (Namespaces, Classes, or Methods).
Method 'forEach(array, method, instance)'
Method: forEach(array, method, instance)
Method Full Name:     Array$forEach(array, method, instance)
Class: Array
Namespace: Global (MicrosoftAjax.debug.js)
Source File: MicrosoftAjax.debug.js
1   Array.forEach = function Array$forEach(array, method, instance) {
2     /// <summary locid="M:J#Array.forEach" />
3     /// <param name="array" type="Array" elementMayBeNull="true"></param>
4     /// <param name="method" type="Function"></param>
5     /// <param name="instance" optional="true" mayBeNull="true"></param>
6     var e = Function._validateParams(arguments, [
7     {name: "array", type: Array, elementMayBeNull: true},
8     {name: "method", type: Function},
9     {name: "instance", mayBeNull: true, optional: true}
10    ]);
11    if (e) throw e;
12    for (var i = 0, l = array.length; i < l; i++) {
13      var elt = array[i];
14      if (typeof(elt) !== 'undefined') method.call(instance, elt, i, array);
15    }
16  }
This is the JavaScript source for method forEach(array, method, instance) from ASP.NET AJAX Library. Full name for this method is Array$forEach(array, method, instance). It belongs to the class Array, which is in Global (MicrosoftAjax.debug.js) namespace. This source is in MicrosoftAjax.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map