Returns the number of elements in a collection type.
If value.length or value.size() is defined, this will be returned. If value is an Object, it returns the number of keys.
value.length
value.size()
value
Object
The number of elements in the collection or undefined.
undefined
Generated using TypeDoc
Returns the number of elements in a collection type.
If
value.length
orvalue.size()
is defined, this will be returned. Ifvalue
is anObject
, it returns the number of keys.Returns
The number of elements in the collection or
undefined
.