Posted almost 2 years ago
tlnt.co/p/1bM

Short note about extending JS prototypes without exposing the function in for loops.

You might also like

JS Bin - Right Click
Code Avengers, learn web development the fun way
Top Javascripts Slowing Down the Web: The Web's Dirty Dozen

Comments

Jared_gaze_thumb
Jared Brown

Good to know, this probably would have gotten me at some point. I do have a bit of trouble wrapping my mind around why a prototyped function would be treated as a property and actually be printed, but from reading a few articles on this it's the way it works in JavaScript. Thanks for sharing Miles.

almost 2 years ago   Like_icon 1 likes  

Talentopoly Newsletter

A once-weekly round-up of the best programming and design posts.

Join 2050+ subscribers

We will never spam or share your email address. Easily unsubscribe

Liked_post_header
Jared_gaze_speck 15b2f7b_speck Default_speck The-web-is-my-life_speck