1.1.5 • Published 2 years ago

ml-array-mode v1.1.5

Weekly downloads
134
License
MIT
Repository
github
Last release
2 years ago

array-mode

NPM version npm download

Get the most repeated value in an array.

Installation

$ npm install --save ml-array-mode

Usage

import mode from 'ml-array-mode';

const result = mode([1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4]);
// 4

License

MIT

1.1.5

2 years ago

1.1.4

3 years ago

1.1.3

4 years ago

1.1.2

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago