Determines the number of elements in an array or number of properties of an object.
Note: this function is used to augment the Object type in angular expressions. See
angular.Object
for more info.
angular.Object.size(obj);
obj – {Object|Array} –
Object or array to inspect.number
– The size of obj
or 0
if obj
is not an object or array.