Files
dsabot/functions/CountOccurences.js
TobenderZephyr 126dce828d Cleanup (#19)
* reformatting of skill checks table

* Including own Random "generator", more refactoring
2021-04-22 17:36:10 +02:00

5 lines
135 B
JavaScript

const CountOccurences = (arr, value) => {
return arr.filter((v) => (v === value)).length;
};
module.exports = { CountOccurences };