jQuery: The Write Less, Do More JavaScript Library

API/1.2/Utilities

From jQuery JavaScript Library

(Redirected from Utilities)
Jump to: navigation, search

NameType
User Agent:

NameType
jQuery.browser Returns: Map
Contains flags for the useragent, read from navigator.userAgent.
jQuery.browser.version Returns: String
The version number of the rendering engine for the user's browser.
jQuery.boxModel Returns: Boolean
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.
jQuery.extend( target, object1, objectN ) Returns: Object
Extend one object with one or more others, returning the original, modified, object.
jQuery.grep( array, callback, invert ) Returns: Array
Filter items out of an array, by using a filter function.
jQuery.makeArray( obj ) Returns: Array
Turns an array-like object into a true array.
jQuery.map( array, callback ) Returns: Array
Translate all items in an array to another array of items.
jQuery.inArray( value, array ) Returns: Number
Determine the index of the first parameter in the Array (-1 if not found).
jQuery.unique( array ) Returns: Array
Remove all duplicate elements from an array of elements.
Test operations:

NameType
jQuery.isFunction( obj ) Returns: boolean
Determine if the parameter passed is a function.
String operations:

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