is-unique
v0.0.1
Published
Predicate that returns true if collection contains unique values.
Downloads
13
Maintainers
Readme
is-unique
Predicate that returns true if collection contains unique values.
Install
npm install is-unique
bower install is-unique
Usage
const isUnique = require('is-unique');
console.log(isUnique('foo')); // false
console.log(isUnique('bar')); // true
console.log(isUnique(['f','o','o'])); // false
console.log(isUnique(['b','a','r'])); // true
console.log(isUnique(122)); // false
console.log(isUnique(123)); // true
Test
npm test
License
MIT