array-no-repeat

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

Usage no npm install needed!

<script type="module">
  import arrayNoRepeat from 'https://cdn.skypack.dev/array-no-repeat';
</script>

README

array-no-repeat Build Status

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

Install

$ npm install --save array-no-repeat

Usage

const unique = require('array-no-repeat');

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

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

License

MIT © Vivek Poddar