Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // multiple type checks at once.
- var variable = {};
- !!~["string", "boolean", "number"].indexOf(typeof variable); // the !! is optional.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement