Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

This package has been deprecated

Author message:

Please use ebabel: npm install --save ebabel

ebabel-count-array-elements

1.0.1 • Public • Published

ebabel-count-array-elements

Build Status

Returns an object that counts how many times each element is present in a given array.

Module install and usage in your game

Install

npm install --save ebabel-count-array-elements

Usage

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

npm install

Run linting and unit tests

npm test

An html coverage report is to be found in the coverage folder.

Generate documentation

npm run jsdoc

The generated documentation is to be found in the docs folder.

Install

npm i ebabel-count-array-elements

DownloadsWeekly Downloads

2

Version

1.0.1

License

GPL-3.0

Unpacked Size

46.1 kB

Total Files

15

Last publish

Collaborators

  • avatar