UNPKG

rittick-datta

Version:
4 lines (3 loc) 97 B
export function findCountOfItem(arr, item) { return arr.filter((x) => x === item).length; }