Web Development with jQuery®

(Elliott) #1

(^548) ❘ APPENDIX I UTILITIES
$.globalEval(code) Executes the specifi ed JavaScript code
in the global scope.
Undefi ned
$.grep(
array,
function()
[, invert]
)
Filters items out of an array using a call-
back function. If the optional invert
argument is false or not provided,
grep returns an array of items where the
callback function has returned true for
each of those items. If the invert argu-
ment is true, it returns an array where
the callback function for each item has
returned false.
Array
$.inArray(value, array
[, fromIndex]
)
Determines whether the specifi ed value
appears in the specifi ed array, option-
ally starting at the offset provided to the
fromIndex argument (counting from
zero).
Array
$.isArray(array) Determines if the item provided is an
array.
Boolean
$.isEmptyObject(object) Determines whether the item provided is
an empty object.
Boolean
$.isFunction(object) Determines whether the item provided is
a function.
Boolean
$.isNumeric(value) Determines whether the item provided
is numeric.
Boolean
$.isPlainObject(object) Determines whether the item provided is
a plain object.
Boolean
$.isWindow(object) Determines whether the item provided is
a Window.
Boolean
$.isXMLDoc(node) Determines whether the item provided is
an XML document.
Boolean
$.makeArray(object) Turns anything into an array (instead of
an Object or a StaticNodeList).
Array
$.merge(array1,
array2)
Merges two arrays into one. Array
$.noop() An empty function, use this function ref-
erence if you want a function that does
nothing.
Undefi ned
(continued)
http://www.it-ebooks.info

Free download pdf