1.0.1 • Published 9 years ago
object-getprototypesof v1.0.1
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