is-isogram

v1.2.4
Test whether a word or phrase is an isogram
isogram heterogram

is-isogram

Latest Version Build Status

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
npm i is-isogram

Metadata

  • MIT
  • >=6.5
  • Jeff Long
  • released 5/5/2020

Downloads

Maintainers