fuzzy matching of IDs in arrays
#fuzzy-id Match edited strings (or other values) by similarity.
var before =id: 1 value: 'Hello world'id: 2 value: 'Node.js is really awesome'id: 3 value: 'fuzzy-id allows you to match arrays by similarity'id: 4 value: 'And finally a last sentence'// we lost all IDs and strings were moved around:var after ='Hello world''fuzzy-id allows you to match arrays by similarity - how great!''Node.js is awesome''This one should not match''And finally a last sentence'// required function to decompose values into arrays for comparison:varreturn valuesplit' 'var result = matchorigin modified decompose: decompose// returns:id: 1 value: 'Hello world'id: 3 value: 'fuzzy-id allows you to match arrays by similarity - how great!'id: 2 value: 'Node.js is awesome'id: value: 'This one should not match'id: 4 value: 'And finally a last sentence'``