jQuery jQuery.makeArray()
Learn all about the jQuery function jQuery.makeArray().
Many methods, both in jQuery and in JavaScript in general, return objects that are array-like. For example, the jQuery factory function $()
returns a jQuery object that has many of the properties of an array (a length, the []
array access operator, etc.), but is not exactly the same as an array and lacks some of an array’s built-in methods (such as .pop()
and .reverse()
).
Note that after the conversion, any special features the object had (such as the jQuery methods in our example) will no longer be present. The object is now a plain array.