var anArray=['0ne','two','three'];
$.each(anArray,function(n,value){
alert(n + 'and '+ value + ' and ' + anArray[n]);
});
var anObject = {'one':1,'two':2,'three':3};
$.each(anObject,function(name,value){
alert (name + ' and ' + value + ' and ' + anObject[name]);
});
var index = $.inArray(2,[1,2,3,4,5]);
var a1 = [1,2,3,4,5];
var a2 = [5,6,7,8,9];
$.merge(a1,a2);
$.unique(array)
$.makeArray(object)
Converts the passed array-like object into a JavaScript array.
Parameters
object (Object) The array-like object (such as a NodeList) to be converted.
Returns
The resulting JavaScript array.
$.isArray(o) Returns true if o is a JavaScript array
Comments
Post a Comment