1.0.10 • Published 2 years ago

js-array-utils v1.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

A simple module contains different array helper functions.

Installation

npm install js-array-utils --save

Usage example

const {findCommonElements} = require("js-array-utils");

let a = [1, 2, 3, 1, 4, 1];
let b = [1, 5,9, 0, 10];
let commonElements = findCommonElements(a, b);
console.log(commonElements)
.
.

Available methods and description

MethodNo. of ParametersDescription
findCommonElements()2To find common elements from 2 arrays
removeDuplicates()1Returns array by removing duplicate elements
1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago