Javascript Library.
Commands 0 |
---|
Convert the given variable to an Array Strings doesn’t split
_z.Array( anyObject );
Returns: An array with the given elements.
var name = "John Smith";
var x = 12;
_z.Array(name); // ["John Smith"]
_z.toArray(name); // ["J", "o", "h", "n", " ", "S", "m", "i", "t", "h"]
_z.Array(x); // [12]
_z.Array( _z("p") ); // Array of all DOM element with tagname p