Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 16, 2024 via pnpm

array-union 3.0.1

Create an array of unique values, in order, from the input arrays
Package summary
Share
0
issues
1
license
1
MIT
Package created
19 Jun 2014
Version published
1 Mar 2021
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
array-union@3.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of array-union 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does array-union do?

Array-union is a handy npm package specifically designed to create an array of unique values from the given input arrays. This ensures that the output array is in order and does not contain any duplicate entries.

How do you use array-union?

Array-union is extremely straightforward to use. After installing with npm by typing npm install array-union, you can start to use it in your JavaScript file. Consider the examples below:

import arrayUnion from 'array-union';

arrayUnion([1, 1, 2, 3], [2, 3]);
// Output will be [1, 2, 3]

arrayUnion(['foo', 'foo', 'bar']);
// Output will be ['foo', 'bar']

arrayUnion(['🐱', 'πŸ¦„', '🐻'], ['πŸ¦„', '🌈']);
// Output will be ['🐱', 'πŸ¦„', '🐻', '🌈']

arrayUnion(['🐱', 'πŸ¦„'], ['🐻', 'πŸ¦„'], ['🐢', '🌈', '🌈']);
// Output will be ['🐱', 'πŸ¦„', '🐻', '🐢', '🌈']

It's worth noting that array-union function can take any number of arrays as arguments and even supports arrays of different data types.

Where are the array-union docs?

The array-union package documentation is available in the readme file found on the package's GitHub page: git+https://github.com/sindresorhus/array-union.git. It offers a comprehensive overview of how to install and use the package, complete with relevant examples of array-union in action.