What is the best way to determine a JavaScript object's prototype? I am aware of the following two methods, but I'm not sure which is the "best" way (or if there's a better preferred way) in terms of cross-browser support.
if (obj.__proto__ === MY_NAMESPACE.Util.SomeObject.prototype) {
// ...
}
or
if (obj instanceof MY_NAMESPACE.Util.SomeObject) {
// ...
}