mirror of
https://github.com/BreizhHardware/memoizee.git
synced 2026-03-18 21:40:27 +01:00
@@ -162,14 +162,18 @@ module.exports = function (original, length, options) {
|
||||
}
|
||||
extGet = defineLength(function () {
|
||||
var id, args = arguments;
|
||||
if (length === 0) return cache.data;
|
||||
if (resolve) args = resolve(args);
|
||||
id = get(args);
|
||||
if (get) id = get(args);
|
||||
else id = String(args[0]);
|
||||
return cache[id];
|
||||
});
|
||||
extHas = defineLength(function () {
|
||||
var id, args = arguments;
|
||||
if (length === 0) return conf.has("data");
|
||||
if (resolve) args = resolve(args);
|
||||
id = get(args);
|
||||
if (get) id = get(args);
|
||||
else id = String(args[0]);
|
||||
if (id === null) return false;
|
||||
return conf.has(id);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user