`typeof value === 'undefined' || value === null` can be written more succinctly as `value == null`. The double-equals will check for both `undefined` and `null`, and you can save the typeof check since we don't have to worry about `ReferenceError`s.