Skip to content Skip to sidebar Skip to footer
Showing posts with the label Prototype

Resetting The Constructor Property Of Prototype Object

Consider the following snippet: function shape(){ this.name = '2d shape' } function tr… Read more Resetting The Constructor Property Of Prototype Object

How To Tell If An Object Has A Given Prototype?

How can one detect if a given browser has the searchParams prototype for URL? https://developer.mo… Read more How To Tell If An Object Has A Given Prototype?

Javascript: Overwriting Function's Prototype - Bad Practice?

Since when we declare a function we get its prototype's constructor property point to the funct… Read more Javascript: Overwriting Function's Prototype - Bad Practice?

How Should You Inherit From Eventemitter In Node?

I was reading over this small article to understand inheriting from EventEmitter, but I'm a lit… Read more How Should You Inherit From Eventemitter In Node?

What Is In Object.__proto__?

In Google Chrom's javascript, objects have a property named __proto__ that points to their prot… Read more What Is In Object.__proto__?

Why Is Foo.hasownproperty('__proto__') Equal To False?

var foo = { bar : 5 } Why is foo.hasOwnProperty('__proto__') equal to false? It can'… Read more Why Is Foo.hasownproperty('__proto__') Equal To False?