![]() |
VOOZH | about |
The count() function is used to count the number of collections in the element.
data.count()This function does not accept any parameter
Returns the count of the element in that collection.
Example 1:Below examples illustrate the count() function in collect.js
Output:
Total number of elements are: { total: 10 }
Example 2:
Output:
Total number of elements are : 4