diff --git a/index.js b/index.js index 29b3719..3108c24 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,5 @@ 'use strict'; -const typeOf = require('kind-of'); const Emitter = require('@sellside/emitter'); const visit = require('collection-visit'); const hasOwn = require('has-own-deep'); @@ -375,7 +374,7 @@ function isString(value) { */ function isObject(value) { - return typeOf(value) === 'object'; + return value && typeof value === 'object'; } /** diff --git a/package.json b/package.json index 45559b5..4382a31 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,6 @@ "collection-visit": "^1.0.0", "get-value": "^3.0.1", "has-own-deep": "^1.1.0", - "kind-of": "^6.0.2", "set-value": "^3.0.0", "union-value": "^1.0.0", "unset-value": "^1.0.0"