source/type.js
function ancestry(input) {
	const proto = input && typeof input === 'object' ? Object.getPrototypeOf(input) : null;

	return proto ? ancestry(proto).concat(proto) : [];
}
function ancestry(input) {
	const proto = input && typeof input === 'object' ? Object.getPrototypeOf(input) : null;

	return proto ? ancestry(proto).concat(proto) : [];
}
function ancestry ( input ) { const proto = input && typeof input === 'object' ? Object . getPrototypeOf ( input ) : null ; return proto ? ancestry ( proto ) . concat ( proto ) : [ ] ; }
Obtain the prototype chain for the given input

@param   {any}    input
@return  {array}  ancestry
Obtain the prototype chain for the given input