When is __proto__ useful?
A lot of browsers support it, but because not all do, programmers seem to be scared of using it. I’ve never seen it in any code (such as the libraries jQuery and backbone.js).
When is __proto__ useful? Is it just a geeky thing for completeness?
__proto__is deprecated and should not be used. UseObject.getPrototypeOfinstead. See https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto –But Opera supports__proto__and notObject.getPrototypeOf, so beware.That said,
Object.getPrototypeOfis, like the name says, used to get the prototype of an object. I’ve never found this useful yet.Edit 2012-02-06 Opera supports
Object.getPrototypeOfas of11.60.