Returns an object that counts how many times each element is present in a given array.
Module install and usage in your game
npm install --save ebabel-count-array-elements
const count-array-elements = require('ebabel-count-array-elements'); const result = count-array-elements(['orc', 'goblin', 'orc', 'orc', 'elf']);
Development of this module
Fork this repository on Github,
git clone your repository, checkout the develop branch, and when you are done, submit a pull request from your repository develop branch to this repository develop branch.
- fork this repository on github.com
- git clone your forked repository.
- git checkout develop
First step when developing
Run linting and unit tests
An html coverage report is to be found in the
npm run jsdoc
The generated documentation is to be found in the