Needlessly Promiscuous, Modularize!

    @extra-string/hamming-distance

    1.1.3 • Public • Published

    Get Hamming distance between strings.

    const hammingDistance = require('string-hammingdistance');
    // hammingDistance(<string-1>, <string-2>)
    
    hammingDistance('rowan', 'raven');
    // 3
    hammingDistance('atkinson', 'atkinson');
    // 0
    hammingDistance('bean', 'green');
    // NaN (strings are of different length)

    extra-string

    Install

    npm i @extra-string/hamming-distance

    DownloadsWeekly Downloads

    9

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    2.49 kB

    Total Files

    4

    Last publish

    Collaborators

    • wolfram77