array-duplicates-gone

Install the module

Usage no npm install needed!

<script type="module">
  import arrayDuplicatesGone from 'https://cdn.skypack.dev/array-duplicates-gone';
</script>

README

Installation

Install the module

$ npm i array-duplicates-gone

Usage

const union = require('array-duplicates-gone');

const arr1 = [5, 10, 15];
const arr2 = [
    "Andy", 
    "Michelle", 
    "Michael", 
    "John", 
    "Michelle", 
    "Michael",
];
const arr3 = [15, 88, 1, 5, 7, 88, 88];

union([arr1, arr2, arr3]) // returns 1 array with all duplicates removed!


Github

View the code on Github https://github.com/andrewmcoupe/array-duplicates-gone