DEV Community

loading...

Discussion on: 20 JavaScript One-Liners That Will Help You Code Like a Pro

Collapse
ovi profile image
Muhammad Ovi Author

This is helpful if we need to verify if 'foobar' is a string, but in some cases, we want to get the type instead of checking (verifying).