Shouldn't this be undefined? `null` is an appropriate value.
Should probably also be a `===` check.
Otherwise i really like the implementation.