A Node.js module that returns an object’s class and its ancestors.
npm install class-chain --save
const getClassChain = require('class-chain')
class A {}
class B extends A {}
let b = new B()
getClassChain(b) // [B, A]
getClassChain.names(b) // ['B', 'A']