If I run node in strict mode, this package throws an error:
// testleven.js
const leven = require("damerau-levenshtein");
console.log(leven("app", "apple"));
$ node --use_strict testleven.js
ReferenceError: j is not defined
at module.exports (./node_modules/damerau-levenshtein/index.js:38:12)
at repl:1:1
at sigintHandlersWrap (vm.js:22:35)
at sigintHandlersWrap (vm.js:96:12)
at ContextifyScript.Script.runInThisContext (vm.js:21:12)
at REPLServer.defaultEval (repl.js:313:29)
at bound (domain.js:280:14)
at REPLServer.runBound [as eval] (domain.js:293:12)
at REPLServer.<anonymous> (repl.js:513:10)
at emitOne (events.js:101:20)
If I run node in strict mode, this package throws an error: