This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| // JSHint Default Configuration File (as on JSHint website) | |
| // See http://jshint.com/docs/ for more details | |
| "maxerr" : 50, // {int} Maximum error before stopping | |
| // Enforcing | |
| "bitwise" : false, // true: Prohibit bitwise operators (&, |, ^, etc.) | |
| "camelcase" : false, // true: Identifiers must be in camelCase | |
| "curly" : false, // true: Require {} for every new block or scope |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // module for calculating the Levenshtein distance between 2 strings | |
| // a matrix to hold the distances | |
| var d = [], | |
| // reusable lengths of the passed in words | |
| lenOne, lenTwo, | |
| // counters | |
| i,j, | |
| // temp equality check | |
| eq; |
NewerOlder