Aware that that typeof null has been rejected, but I was wondering if it
could be revived via the implicit "opt-in" path, eg:
non-strict, non-opt-in:
typeof null === "null"; // false
implied opt-in:
module Foo {
export function create( options ) {
if ( typeof options === "null" ) {
return ... some default thing;
}
};
}
import create from Foo;
let default = create( null );
Is something like this even possible?
Rick
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss