Javascript Library.
Commands 0 |
---|
Return the size of object.
_z.size(anyObject);
Returns: Number size of given object.
var array = [ 'a', 1, [] ];
var obj = { 'a': 1, 1: [] };
var str = "abcd";
_z.size(array); // 3
_z.size(obj); // 2
_z.size(str); // 4