array-distinct

The array to get the distinct items from.

Usage no npm install needed!

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

README

array-distinct Travis CI Build Status

The array to get the distinct items from.

NPM Badge

Install

npm install array-distinct

Usage

const arrayDistinct = require("array-distinct");

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

API

arrayDistinct(array)

array

Type: array

The array to get the distinct items from.