Update object checks.

This commit is contained in:
John-David Dalton
2017-04-23 22:15:51 -07:00
parent a6019d5316
commit f03b3edca4
11 changed files with 14 additions and 14 deletions

View File

@@ -21,7 +21,7 @@
* // => false
*/
function isObjectLike(value) {
return value != null && typeof value == 'object'
return typeof value == 'object' && value !== null
}
export default isObjectLike