plain-hamming
v0.1.0
Published
Calculate the Hamming distance between two strings using algorithm that does no input checking to be faster.
Downloads
8
Readme
plain-hamming 
Calculates the Hamming distance between two strings.
Uses very simple algorithm that does no input checking to be faster, therefore make sure that the arguments you pass in are both strings of equal length.
const plainHamming = require('plain-hamming')
plainHamming('hello', 'hello') // => 0
plainHamming('hello', 'he1lo') // => 1
plainHamming('hello', 'he11o') // => 2
plainHamming('hello', 'h3llo') // => 1
plainHamming('hello', 'h3ll0') // => 2Installation
npm install plain-hammingLicense
MIT
