`typeof foo === "string"` -> `type(foo) == "string"` (we can directly transform it when we know that we don't need to change type) `typeof foo === "undefined`" -> `type(foo) == "nil"` (instead of wrapping left-hand part we can just change right)
typeof foo === "string"->type(foo) == "string"(we can directly transform it when we know that we don't need to change type)typeof foo === "undefined" ->type(foo) == "nil"(instead of wrapping left-hand part we can just change right)