jQuery Utilities Methods

About This Index
This page is the jQuery Utilities index for the tutorial track. Each row links to a full guide with syntax, examples, and FAQs.
Learn the jQuery overview on /jquery. Use this page when you need a utility such as $.each(), $.extend(), or $.type().
Start with $.each() and $.extend(), then $.map() / $.grep()—add the is* helpers when you need type guards.
How to Call a Utility
Call utilities on $ / jQuery — they are not chained from a selection:
$.each([1, 2, 3], function (i, value) {
console.log(i, value);
});
$.extend({}, { a: 1 }, { b: 2 }); // { a: 1, b: 2 }
$.map([1, 2, 3], function (n) { return n * 2; });
$.grep([1, 2, 3, 4], function (n) { return n % 2 === 0; });
$.type([]); // "array"
$.isPlainObject({}); // true
$.inArray("b", ["a", "b", "c"]); // 1 jQuery Utilities Methods Table
All Utilities method guides in this jQuery tutorial series (38 tutorials).
Iteration & Filter
3 methodsWalk and transform collections — each, map, and grep.
Objects & Arrays
6 methodsMerge objects, combine arrays, convert array-likes, and search or dedupe.
| Method | Description | Tutorial |
|---|---|---|
$.extend() | Merge properties from one or more objects into a target — shallow or deep. | Try it |
$.merge() | Append elements from a second array-like onto the first — keeps duplicates. | Try it |
$.makeArray() | Convert NodeLists, jQuery collections, or arguments into a true array. | Try it |
$.inArray() | Search an array for a value and return its index, or -1 when not found. | Try it |
$.uniqueSort() | Remove duplicate DOM nodes and sort elements into document order. | Try it |
$.unique() | Legacy name for uniqueSort — deprecated since jQuery 3.0. | Try it |
Type Checking
8 methodsInspect JavaScript values with $.type and the is* helpers.
| Method | Description | Tutorial |
|---|---|---|
$.type() | Return an accurate lowercase type string for null, arrays, dates, and more. | Try it |
$.isArray() | Return true when a value is a genuine JavaScript array. | Try it |
$.isEmptyObject() | Return true when an object has no enumerable properties. | Try it |
$.isFunction() | Return true when a value is a JavaScript function. | Try it |
$.isNumeric() | Return true for finite numbers and numeric strings — reject NaN and Infinity. | Try it |
$.isPlainObject() | Return true for plain {} objects — not arrays or DOM nodes. | Try it |
$.isWindow() | Return true when a value is a browser window — deprecated in 3.3. | Try it |
$.isXMLDoc() | Return true when a DOM node is or belongs to an XML document. | Try it |
DOM & Data
8 methodsTest containment, store data, and parse HTML/XML strings.
| Method | Description | Tutorial |
|---|---|---|
$.contains() | Return true when a DOM element is a descendant of another. | Try it |
$.find() | Static selector-engine entry point that returns a plain array — internal; prefer $(selector, context). | Try it |
$.data() | Attach and retrieve arbitrary data on DOM elements via jQuery’s cache. | Try it |
$.removeData() | Delete one key or clear all jQuery data on a raw DOM element. | Try it |
$.parseHTML() | Parse an HTML string into an array of DOM nodes — scripts off by default. | Try it |
$.htmlPrefilter() | Hook that filters HTML strings before manipulation methods parse them — passthrough since 3.5; not a sanitizer. | Try it |
$.parseXML() | Parse a well-formed XML string into an XMLDocument. | Try it |
$.globalEval() | Execute JavaScript strings in the global scope — never pass untrusted input. | Try it |
Queues
2 methodsLow-level queue helpers — prefer .queue() / .dequeue() on elements day to day.
| Method | Description | Tutorial |
|---|---|---|
$.queue() | Show, add, or replace the function queue on a DOM element. | Try it |
$.dequeue() | Execute the next function on an element’s fx or custom queue. | Try it |
Helpers
6 methodsSmall utilities — trim, now, parseJSON, proxy, noop, and escapeSelector.
| Method | Description | Tutorial |
|---|---|---|
$.trim() | Remove leading and trailing whitespace — prefer String.prototype.trim(). | Try it |
$.now() | Return milliseconds since the Unix epoch — prefer Date.now() (deprecated 3.3). | Try it |
$.parseJSON() | Parse a JSON string into a value — prefer JSON.parse(). | Try it |
$.proxy() | Return a function with a fixed this — prefer Function.prototype.bind(). | Try it |
$.noop() | Return a shared empty function — placeholder for optional callbacks. | Try it |
$.escapeSelector() | Escape special characters in CSS selector strings for safe dynamic lookups. | Try it |
Legacy & Internals
5 methodsDeprecated or removed APIs — keep for migration notes only.
| Method | Description | Tutorial |
|---|---|---|
$.support | Internal browser capability flags — prefer Modernizr or native feature detection. | Try it |
$.browser | Removed user-agent flags — deprecated 1.3, removed 1.9; prefer feature detection or jQuery Migrate. | Try it |
$.boxModel | Removed Boolean for the W3C box model — deprecated 1.3, removed 1.8; use compatMode or box-sizing. | Try it |
$.error() | Throw an Error with the given message — used internally; prefer throw new Error() in app code. | Try it |
$.sub() | Create an isolated jQuery copy for plugins — removed in jQuery 1.9; prefer modules or noConflict. | Try it |
Frequently Asked Questions
Start with $.each()
Open the iteration guide—syntax, examples, and FAQs.
CODETOFUN NEWS
Stay Ahead in Tech
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
16 people found this page helpful
