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.lengthorvalue.size()is defined, this will be returned. Ifvalueis anObject, it returns the number of keys.Returns
The number of elements in the collection or
undefined.