dojo._toArray
<script src="../../js/dojo.js"></script>
defined in dojo/_base/lang.js
Converts an array-like object (i.e. arguments, DOMCollection) to an array. Returns a new Array with the elements of obj.
parameter | type | description |
---|---|---|
obj | Object | the object to "arrayify". We expect the object to have, at a minimum, a length property which corresponds to integer-indexed properties. |
offset | Number | Optional. the location in obj to start iterating from. Defaults to 0. Optional. |
startWith | Array | Optional. is the returned array. |