Miscellaneous properties and functions

These utility methods do not fit neatly into the previous categories, but are often very useful when writing scripts using jQuery.

Properties of the jQuery object

Property

Description

$.support

Returns an object containing properties indicating whether the browser supports various features and standards.

Arrays and objects

Function

Description

$.each(collection, callback)

Iterates over collection, executing callback for each item.

$.extend(target, addition, ...)

Modifies the object target by adding properties from the other supplied objects.

$.grep(array, callback, [invert])

Filters array by using callback as a test.

$.makeArray(object)

Converts object into an array.

$.map(array, ...

Get Learning jQuery - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.