just-union
TypeScript icon, indicating that this package has built-in type declarations

3.2.0 • Public • Published

just-union

Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

🍦 Try it

npm install just-union
yarn add just-union

Returns the union of two arrays

import union from 'just-union';

union([1, 2, 5, 6], [2, 3, 4, 6]); // [1, 2, 5, 6, 3, 4]

Package Sidebar

Install

npm i just-union

Weekly Downloads

386

Version

3.2.0

License

MIT

Unpacked Size

4.38 kB

Total Files

9

Last publish

Collaborators

  • angus-c