Consider such an object with a prototype chain:
var A = {};
var B = Object.create(A);
var C = Object.create(B);
How to check in runtime if C has A in its prototype chain?
instanceof
doesn't fit as it's designed to work with constructor functions, which I'm not using here.