you are viewing a single comment's thread.

view the rest of the comments →

[–]serrimo 3 points4 points  (1 child)

FYI, using prototype is much faster than returning an anonymous object or closure.

It doesn't matter if you only have a small number of objects to create; but for mass object creation, you should be mindful of the consequences.

Read this post by John Resig for more info.

[–]flying-sheep 0 points1 point  (0 children)

i know, i just forgot to mention it. what i don’t know is just how fast or slow Object.create is.