@aikidosec/firewall
Version:
Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks
11 lines (10 loc) • 390 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isOptionsObject = isOptionsObject;
/**
* Check if the argument is treated as an options object by Node.js.
* For checking if the argument can be used as options for a outgoing HTTP request.
*/
function isOptionsObject(arg) {
return typeof arg === "object" && !Array.isArray(arg) && arg !== null;
}