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

Javascript Proper Prototypical Inheritance

I've been spending my past couple hours researching prototypical inheritance, but I'm left … Read more Javascript Proper Prototypical Inheritance

Where The __proto__ Is Pointing When We Change The Prototype Of The Parent Object?

Normally when we create a new object using 'new' keyword, actually the __proto__ property o… Read more Where The __proto__ Is Pointing When We Change The Prototype Of The Parent Object?

Can't Use String#trim As A Callback For Array#map

For some reason I can't use String.prototype.trim.call as a callback for array methods, such as… Read more Can't Use String#trim As A Callback For Array#map

Understanding Better Javascript Oop Architecture

As i read through some examples of Angularjs' UI add-on, i've stumbled over some code that … Read more Understanding Better Javascript Oop Architecture

How Can I Add Properties To An Object In Ie6?

I've got a particularly tricky problem using AJAX, which works fine in IE7 and Firefox, but not… Read more How Can I Add Properties To An Object In Ie6?

Javascript Build A Constructor Of Constructors

Here is a simple example of what I want : var ConstBuilder = function() { var constructor = fun… Read more Javascript Build A Constructor Of Constructors

Why Is `object() === New Object()` Equal To `false`?

Why it returns false? let a = new Object() let b = Object() console.log(a) // {} console.log(b) // … Read more Why Is `object() === New Object()` Equal To `false`?

What Is The Specific Impact Of Assigning __proto__ In Each Browser?

This is for a very specific use case. And this is all in typescript (which for this use case I thin… Read more What Is The Specific Impact Of Assigning __proto__ In Each Browser?