![]() |
VOOZH | about |
With the help of d3.count() method, we can get the count of valid values in the specified iterable data structure.
Syntax:
d3.count(iterable[, accessor])
Return value: It returns the count of valid values.
Note: To execute the below examples you have to install the d3 library by using the command prompt for the following command.
npm install d3
Example 1: In this example, we can see that by using d3.count() method, we are able to get the count of valid values in the specified iterables.
Output:
4
Example 2:
Output :
3