arrays-tool
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

arrays-tool

A simple npm package that provides useful functions for manipulating arrays.

Installation

Use npm to install arrays-tool:

npm install arrays-tool

Usage

const { useRandomArrayPack } = require('arrays-tool');

const tools = useRandomArrayPack();

const array = [4, 9, 132, 78, 42];

const shuffledArray = tools.shuffle(array);

console.log(shuffledArray);
// Output: [132, 42, 9, 4, 78]

API

shuffle(array)

Shuffles the elements of the given array randomly and returns a new shuffled array.

  • array: The array to be shuffled.

Returns the shuffled array.

Contributing

Contributions are welcome! If you have any ideas, improvements, or bug fixes, please open an issue or submit a pull request.

License

This project is licensed under the MIT License

Package Sidebar

Install

npm i arrays-tool

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

17.6 kB

Total Files

18

Last publish

Collaborators

  • ademhatay