UnderZ

Javascript Library.

Get Object/Array/String Size

Return the size of object.


Object size.

_z.size(anyObject);

Returns: Number size of given object.


Examples

var array = [ 'a', 1, [] ];
var obj = { 'a': 1, 1: [] };
var str = "abcd";

_z.size(array); // 3
_z.size(obj); // 2
_z.size(str); // 4