1.0.10 • Published 1 year ago

js-array-utils v1.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year 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

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago