hamming
Calculate the Hamming distance between two strings.
The Hamming distance measures the minimum number of substitutions required to change one string into the other of equal length.
Demo
https://lab.miguelmota.com/hamming
Install
npm install hamming
Usage
const hammingDistance = ; console; // 0console; // 1console; // 3console; // null
Hamming distance requires both strings to have the same length.
Test
npm test
License
MIT