function Func(staff){ staff = staff || {}; var foo = staff.foo || false; // etc } var F = new Func();