[go: up one dir, main page]

is-in-hamming-distance

1.0.0 • Public • Published

isInHammingDistance

Returns true if the hamming distance between two strings or arrays of equal length is smaller than the given limit.

Install

npm install is-in-hamming-distance --save

Usage

const isInHammingDistance = require("is-in-hamming-distance");
 
console.log(isInHammingDistance(3, "karolin", "kathrin"));
// => true
console.log(isInHammingDistance(1, "karolin", "kathrin"));
// => false

License

MIT

Package Sidebar

Install

npm i is-in-hamming-distance

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

7.25 kB

Total Files

11

Last publish

Collaborators

  • guilhermehn