Create a gist now

Instantly share code, notes, and snippets.

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