day3npmpackage10fng
v1.1.0
Published
A collection of utility functions for array operations, including sum, multiplication, average, finding odd/even numbers, maximum/minimum values, reversing, and sorting.
Downloads
2
Readme
Array Utilities
A collection of utility functions for array operations, including sum, multiplication, average, finding odd/even numbers, maximum/minimum values, reversing, and sorting.
Installation
Install the package via npm:
npm i day3npmpackage10fng
Functions
- Sum of array Eleements
- Multiplication of array Eleements
- Average of array Eleements
- Odd array elements
- Even array Elements
- Max number from array elements
- Min number from array elements
- Reverse array elements
- Sort in Ascending order
- Sort in descending order
How to use
Example
const { average } = require('your-package-name');
console.log(average(marr)); // Output: 12