Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Object and array literals are faster than constructors
function usingConstructors( string )
var a = new Array(), o = new Object();
function usingLiterals ( string )
var a = [], o = {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.