npm.devtool.tech
πŸ‘ You can access array-union package with using arrayUnion variable in browser devtools!
Create an array of unique values, in order, from the input arrays

basic

package
Npm Version
Node Version

popularity

Star
Npm Weekly Downloads
Jsdeliver Month Downloads
Dependents Pkg
Dependents Repo

size

Code Size
Publish Size
Install Size
Minified Size
Gzip Size

quality

Open Issues
Tree Shaking Support
Type Support
Last Commit

health

Package health
Dependency Count
Outdated Dep
Vulnerablities

array-union

Create an array of unique values, in order, from the input arrays

Install

$ npm install array-union

Usage

import arrayUnion from 'array-union';

arrayUnion([1, 1, 2, 3], [2, 3]);
//=> [1, 2, 3]

arrayUnion(['foo', 'foo', 'bar']);
//=> ['foo', 'bar']

arrayUnion(['🐱', 'πŸ¦„', '🐻'], ['πŸ¦„', '🌈']);
//=> ['🐱', 'πŸ¦„', '🐻', '🌈']

arrayUnion(['🐱', 'πŸ¦„'], ['🐻', 'πŸ¦„'], ['🐢', '🌈', '🌈']);
//=> ['🐱', 'πŸ¦„', '🐻', '🐢', '🌈']

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.