Modify ↓
Ticket #10424 (closed enhancement: plugin)
Add .toArray() method
| Reported by: | wheresrhys | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | core | Version: | 1.6.4 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description (last modified by rwaldron) (diff)
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
$.makeArray($("div"));
And not like so:
$("div").makeArray();
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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