From jQuery JavaScript Library
(Redirected from
Utilities)
Browser and Feature Detection:Array and Object operations:| Name | Type |
|---|
| 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.makeArray( obj ) | Returns: Array |
| Turns anything 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.merge( first, second ) | Returns: Array |
| Merge two arrays together. |
| jQuery.unique( array ) | Returns: Array |
| Remove all duplicate elements from an array of elements. Note that this only works on arrays of DOM elements, not strings or numbers. |
Test operations:String operations:| Name | Type |
|---|
| jQuery.trim( str ) | Returns: String |
| Remove the whitespace from the beginning and end of a string. |
URLs: