Do we really need to include an entire lib to do this? can we not do something similar to:

```javascript
if (object.constructor.name === 'RegExp')
```

or

```javascript
if (object instanceOf RegExp)
```