Javascript Library.
Commands 0 |
---|
Convert the given variable to an Array Strings do split
_z.toArray( anyObject );
Returns: Array An array with the given elements.
var x = {};
var x["data"] = 123;
var x["data1"] = "more data";
_z.toArray(x); // [{data:123, data1:"more data"}]
_z.toArray("abc"); // ['a', 'b', 'c']
_z.toArray(123); // [123]
_z.toArray( _z("button") ); // array of DOM element with tag button