`instanceof Object` is probably overkill. I don't think any JS native data types have a `type` property.