Beyond DOM manipulation and AJAX, jQuery ships with a suite of utility functions accessible via the $. namespace. These helper functions solve common JavaScript tasks — type checking, object merging, array handling, and string manipulation — in a cross-browser, concise way.
Type Checking Utilities
JavaScript's typeof operator has well-known quirks (for example, typeof null === 'object'). jQuery provides precise type-checking functions: $.isArray(), $.isFunction(), $.isNumeric(), $.isEmptyObject(), and $.type() for unambiguous type strings.
Object and Array Utilities
$.extend() merges object properties, $.each() iterates arrays and objects, $.map() transforms arrays, $.grep() filters arrays, and $.inArray() searches for values — all without requiring modern ES6+ support.
$.type(val)— returns precise type string$.isNumeric(val)— true for valid numbers$.isEmptyObject(obj)— true for{}$.extend(target, src)— merge objects$.grep(arr, fn)— filter an array$.inArray(val, arr)— indexOf equivalent