@aikidosec/firewall
Version:
Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks
16 lines (15 loc) • 516 B
TypeScript
/**
* Grabbed from https://github.com/jonschlinkert/is-plain-object
*/
/**
* This function examines an object to check if it's a plain object.
* @param o The object you want to examine
* @returns True when it is a plain object, otherwise false
* @example
* isPlainObject(Object.create({})) // Returns true
* @example
* isPlainObject({ foo: "bar" }) // Returns true
* @example
* isPlainObject(new Foo()) // Returns false
*/
export declare function isPlainObject(o: unknown): o is Record<string, unknown>;