UNPKG

jsinspect-plus

Version:

Detect copy-pasted and structurally similar code. Supports ES2020 standard (and most proposed features), TS and TSX files. Using Babel 8's parser.

12 lines (9 loc) 155 B
var storage = { cache: {}, get: function(key) { return storage.cache[key]; }, set: function(key, val) { storage.cache[key] = val; } };