Skip to content
Malexion edited this page Oct 31, 2016 · 2 revisions

__.count(obj, [func])

  • obj Item to iterate over.
  • [func] [Optional] function for handling the count, must return a value, if it is null, undefined or NaN it is not counted.

Examples

console.log(__.count([ 5, 21, 4, 30900 ]));