I stumbled over some interesting code inside react. Link to code
if (typeof data[Symbol.iterator]) { ... }
In my understanding typeof[data[Symbol.iterator]] should be truthy because typeof returns a string.
like:
const obj = {}
if(typeof(obj.x)){
console.log("hello world");
}
gives out “hello world” because even typeof(undefined) => "undefined" => truthy
tldr: Is there any possible falsey outcome of typeof?