If you find yourself writing code like below often enough
test = new Array();
then you might be able to delay the onset of carpal tunnel by using the syntax below.
test = test || new Array();
Update: watch out when using the above syntax for assigning default values for boolean and number argument types. Even though false and 0 are valid arguments, they will still evaluate to falsey and end up taking the default value.