object-getprototypesof

1.0.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i object-getprototypesof

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • fundon