Functiondojo._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.

Usage

function (/*Object*/ obj, /*Number?*/ offset, /*Array?*/ startWith) (view source)
parametertypedescription
objObjectthe object to "arrayify". We expect the object to have, at a minimum, a length property which corresponds to integer-indexed properties.
offsetNumberOptional. the location in obj to start iterating from. Defaults to 0. Optional.
startWithArrayOptional. is the returned array.