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

    Install

    npm i is-in-hamming-distance

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    7.25 kB

    Total Files

    11

    Last publish

    Collaborators

    • guilhermehn