jQuery Arrays



$.each(object, function)

Object Fill in the array object, function is the callback after the traversal function


$.eachnd(boolean, object1, object2, [objectN])

Boolean(true / false). Object and function are required, this method is mainly used to merge two arrays, the same subscript will have the value of the second array object to replace the first array of objects in the same location


$.grep(array, function, boolean)

Array to fill the array, function is the callback function after traversal, boolean is set to true excluded from the array in the function of the matching options.


$.makeArray(object)

Converts the {class} array object to an array object


$.map(array, function(i))

The array: array is converted to a new array by the function: callback function according to the condition


$.inArray(value, array)

Value: the array used to find the existence of the conditions, array to be found in the array


$.toArray()

Converts all the DOM elements in the jQuery collection into an array


$.merge(object1, object2)

This method is mainly used to merge two arrays, the same subscript will not be replaced


$.unique(array)

Removes duplicate elements from the array. Only deal with the deletion of DOM element array, and can not handle a string or number array.


$.parseJSON(json)

Parse a [standard] JSON string, see the case.



Copyright 2014-2017 by DeveloperTut.com. All Rights Reserved.
TwitterGoogle+Facebook