1.0.3 • Published 6 years ago

is-anagram v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

is anagram

Travis

What is this?

This package will check if two words / strings are anagrams. https://en.wikipedia.org/wiki/Anagram

Installation

It's available on npm.

npm install --save is-anagram

Usage

const isAnagram = require('is-anagram');

isAnagram('silent', 'listen')           // true
isAnagram('rail safety', 'fairy tales') // true
isAnagram('silent', 'lamb')             // false
isAnagram('silent', [])                 // false

Test

$ npm test

Contribution

Contributions are appreciated.

License

MIT licensed. See LICENSE.