array-tools-aquaphobi
v1.0.1
Published
- **Array Tools Aquaphobi** is a tool that allows you to manipulate arrays in a simple way.
Downloads
7
Readme
Array Tools Aquaphobi
- Array Tools Aquaphobi is a tool that allows you to manipulate arrays in a simple way.
Purpose
this tool was created to test out the capabilities of publishing an npm package, it is not intended to be used as a real tool.
Installation
npm install array-tools-aquaphobitools
- mostFrequentElement: returns the most frequent element in an array.
Usage
compatible with both javascript and typescript.
javascript
const { mostFrequentElement } = require('array-tools-aquaphobi');
console.log(mostFrequentElement([1, 2, 1, 3, 4, 1, 5, 1, 6, 1])); // 1typescript
import { mostFrequentElement } from 'array-tools-aquaphobi';
console.log(mostFrequentElement([1, 2, 1, 3, 4, 1, 5, 1, 6, 1])); // 1License
MIT
Author
Aquaphobi
Contact
don't
Version
1.0.1
Notes on Tests
no tests were written for this package.
Version Notes
- 1.0.0: initial release
- 1.0.1: created README.md
