Licence
MIT
Version
1.0.0
Deps
1
Size
1 kB
Vulns
0
Weekly
0
Object.getPrototypeOf
The Object.getPrototypeOf intrinsic, robustly cached. If it doesn't exist, it exports null.
Usage
const $getPrototypeOf = require("object.getprototypeof-x")
const assert = require("assert")
assert($getPrototypeOf === Object.getPrototypeOf)
null logic:
delete Object.getPrototypeOf
console.log("object.getprototypeof-x") // null