I just want to increase my core javascript knowledge.
Sometimes I see this statement but I don\'t know what it does:
var var1 = var1 || [];
Basically if var1 is NULL or false, var1 will be set to an empty array.
var1
NULL
false
array