// 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 'prototype.endsWith(suffix)'
Method: prototype.endsWith(suffix)
Method Full Name:     String$endsWith(suffix)
Class: String
Namespace: Global (MicrosoftAjax.debug.js)
Source File: MicrosoftAjax.debug.js
1   String.prototype.endsWith = function String$endsWith(suffix) {
2     /// <summary locid="M:J#String.endsWith" />
3     /// <param name="suffix" type="String"></param>
4     /// <returns type="Boolean"></returns>
5     var e = Function._validateParams(arguments, [
6     {name: "suffix", type: String}
7     ]);
8     if (e) throw e;
9     return (this.substr(this.length - suffix.length) === suffix);
10  }
This is the JavaScript source for method prototype.endsWith(suffix) from ASP.NET AJAX Library. Full name for this method is String$endsWith(suffix). It belongs to the class String, 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