| Server IP : 185.208.173.17 / Your IP : 87.236.161.98 Web Server : Microsoft-IIS/10.0 System : Windows NT SRV8576125506 10.0 build 26100 (Windows Server 2016) AMD64 User : IUSR ( 0) PHP Version : 7.4.13 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/parsmega.nuxt/node_modules/cache-manager/lib/ |
Upload File : |
var isObject = function isObject(value) {
return value instanceof Object && value.constructor === Object;
};
var parseWrapArguments = function parseWrapArguments(args) {
var length = args.length;
var work;
var options = {};
var cb;
/**
* As we can receive an unlimited number of keys
* we find the index of the first function which is
* the "work" handler to fetch the keys.
*/
for (var i = 0; i < length; i += 1) {
if (typeof args[i] === 'function') {
if (typeof args[i + 2] === 'function') {
cb = args.pop();
} else if (typeof args[i + 1] === 'function') {
cb = args.pop();
}
if (isObject(args[i + 1])) {
options = args.pop();
}
work = args.pop();
break;
}
}
return {
keys: args,
work: work,
options: options,
cb: cb
};
};
module.exports = {
isObject: isObject,
parseWrapArguments: parseWrapArguments
};