JSPM

is-in-hamming-distance

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q16260F
  • License MIT

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

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.

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