array-occurrence
Get the number of occurrences of an item in an array
Install
$ npm install --save array-occurrence
Usage
var arrayOccurrence = ; ;//=> 2
API
arrayOccurrence(input, search)
input
Type: array
Array to search in.
search
Type: Any type
Item to search for.
License
MIT © Andreas Gillström