object-getprototypesof
v1.0.1
Published
Recursive get prototype of object
Downloads
9
Maintainers
Readme
object-getprototypesof
Recursive get prototype of object. The Object.getPrototypeOf+.
Install
$ npm install --save object-getprototypesof
Usage
const getPrototypesOf = require('object-getprototypesof');
const a = {};
const b = {};
const c = {};
b.__proto__ = a;
Object.setProtoypeOf(c, b);
var arr = getPrototypesOf(c);
// [{}, {}, {}];
License
MIT