function-array
v1.0.3
Published
hof function to inducing array methods
Downloads
3
Maintainers
Keywords
Readme
README.md
Utils Module
This module provides basic arrays functions.
Functions:
Usage:
const utils = require("./calculator");
let sum = utils.sum([1, 2, 3, 4]); // Output: 10
let unique = utils.unique();
let filterEven = utils.filterEven();
let filterOdd = utils.filterOdd();
let max = utils.max();
let min = utils.min();
let reverse = utils.reverse();
let sortAscending = utils.sortAscending();
let sortDescending = utils.sortDescending();