What's the reason to use === instead of == with typeof in Javascript?
Throughout many third-party libraries and best practices blogs/recommendations, etc... it is common to see syntax like this: typeof x === 'object' (instead of typeof x == 'object') typeof y === 'string' (instead of typeof x == 'string') typeof z === 'function' (instead of typeof x == 'function') If the typeof operator already returns ...