UNPKG
imma
Version:
latest (0.0.1)
0.0.1
A collection of functions for dealing with native arrays and objects immutably
imma
/
lib
/
object
/
isObjectLike.js
6 lines
(5 loc)
•
186 B
JavaScript
View Raw
1
2
3
4
5
6
'use strict'
const
isObjectLike =
module
.
exports
=
object
=>
typeof
object
===
'object'
&&
object
.
constructor
===
Object
&&
Object
.
getPrototypeOf
(
object
) ===
Object
.
prototype