I found this today to check if something is a boolean:

Instead of:

```
typeof a === 'boolean' && //do sth

```

You can use:

```
a === !!a && //do sth

```

Are there any other methods like this to check for `typeof string/number/obj/arr` etc?

I'm not looking for best practices but rather for clever ways to do " typechecking " .