Type Checking In JavaScript Is Tricky Type checking is tricky in JavaScript. type === ‘string’ may one day trip you up.