is-isogram
v1.2.4
Published
Test whether a word or phrase is an isogram
Downloads
6
Readme
is-isogram
Test whether a word or phrase is an isogram (a word or phrase without a repeating letter).
Installation
$ npm install is-isogram --save
Usage
var isIsogram = require('is-isogram');
// Test whether letters repeat in a word:
isIsogram('sandwich');
// -> true
isIsogram('wedding');
// -> false
// Also supports phrases, ignoring spacing:
isIsogram('quick on the draw');
// -> true
isIsogram('flipped turned upside down');
// -> false