Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.5 KB

README.md

File metadata and controls

37 lines (22 loc) · 1.5 KB

array-utils

npm version License GitHub issues

A Comprehensive collection of powerful array utility functions for JavaScript developers. Simplify your array operations with functions for sum, average, max, min, removing duplicates, finding unique elements, and merging arrays without duplicates.

Installation

You can install array-utils using npm

npm install array-utils-mayur

Functions

  1. sum(arr): Calculate the sum of elements in an array.
  2. average(arr): Calculate the average of elements in an array.
  3. max(arr): Find the maximum value in an array.
  4. min(arr): Find the minimum value in an array.
  5. removeDuplicates(arr): Remove duplicates from an array.
  6. uniqueElements(arr): Find unique elements in an array.
  7. mergeArraysWithoutDuplicates(arr1, arr2): Merge two arrays without duplicates.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Bugs and Issues

If you encounter any bugs or issues, please report them on GitHub Issues.

Contributions

Contributions are welcome! If you have any improvements or additional utility functions to add, feel free to submit a pull request.