* removed rewire. now using babel-rewire instead * implemented more tests * changed some eslint params * linting * linting * coverage on getChant Co-authored-by: Marcus Netz <marcus.netz@godyo.com>
6 lines
132 B
JavaScript
6 lines
132 B
JavaScript
const CountOccurences = (arr, value) => {
|
|
return arr.filter(v => v === value).length;
|
|
};
|
|
|
|
module.exports = { CountOccurences };
|