1.0.1 • Published 9 years ago

object-getprototypesof v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

object-getprototypesof Build Status

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