ga-wdi-boston / js-array-iteration-methods

JavaScript Array methods
Other
1 stars 160 forks source link

Create `count` "method" in a code along. #32

Closed gaand closed 7 years ago

gaand commented 7 years ago

if it's argument is a function, count elements for which the function applied to the element returns true. other wise, equality compare the argument against each element and count those for which this comparison is true.