Package Exports
- is-in-hamming-distance
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-in-hamming-distance) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
isInHammingDistance
Returns true if the hamming distance between two strings or arrays of equal length is smaller than the given limit.
- Wikipedia: Hamming Distance
- API: API.md
- Benchmark: BENCHMARK.txt
Install
npm install is-in-hamming-distance --saveUsage
const isInHammingDistance = require("is-in-hamming-distance");
console.log(isInHammingDistance(3, "karolin", "kathrin"));
// => true
console.log(isInHammingDistance(1, "karolin", "kathrin"));
// => falseLicense
MIT