code: function getClassChain (obj) {
    if (typeof obj === 'function') {
      if (!obj.name || obj === Object) return []
      return [obj].concat(getClassChain(Object.getPrototypeOf(obj)))
    }
  
    if (isObject(obj)) {
      return getClassChain(obj.constructor)
    }
  
    return []
  }
docs: Returns an object’s class and its ancestors.
  @param  {object|function} obj The object or the first class in the chain.
  @return {array.<function>} The class and the chain of classes it extends.