Bug Tracker

Opened 11 years ago

Closed 11 years ago

#10424 closed enhancement (plugin)

Add .toArray() method

Reported by: wheresrhys Owned by:
Priority: low Milestone: None
Component: core Version: 1.6.4
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by Rick Waldron)

Reading through the documentation today I found an example (

$("div").get(); / returns array of DOM nodes

Also I notice .makeArray() only works in the following way


And not like so:


Given that the functionality exists (but just not documented properly), could jQuery include a .toArray/.makeArray method (either adapting the current .makeArray or as an alias for .get()).

Change History (1)

comment:1 Changed 11 years ago by Rick Waldron

Component: unfiledcore
Description: modified (diff)
Priority: undecidedlow
Resolution: plugin
Status: newclosed

there is really no reason to add another array creator method to the core

Note: See TracTickets for help on using tickets.