Documentation

API/1.1.2/Utilities

From jQuery JavaScript Library

(Redirected from JavaScript)
Jump to: navigation, search

This is an old version of the Utilities API:
View the Current API

NameType
User Agent:

NameType
jQuery.browserReturns: Map
We recommend against using this property, please try to use feature detection instead (see jQuery.support). Contains flags for the useragent, read from navigator.userAgent. While jQuery.browser will not be removed from future versions of jQuery, every effort to use jQuery.support and proper feature detection should be made.
jQuery.boxModelReturns: Boolean
Deprecated in jQuery 1.3 (see jQuery.support) States if the current page, in the user's browser, is being rendered using the W3C CSS Box Model.
Array and Object operations:

NameType
jQuery.each( object, callback )Returns: Object
A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function's arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties.
jQuery.extend( deep, target, object1, objectN )Returns: Object
Extend one object with one or more others, returning the modified object.
jQuery.grep( array, callback, invert )Returns: Array
Finds the elements of an array which satisfy a filter function. The original array is not affected.
jQuery.map( array, callback )Returns: Array
Translate all items in an array to another array of items.
String operations:

NameType
jQuery.trim( str )Returns: String
Remove the whitespace from the beginning and end of a string.