UNPKG
@nathanfaucett/is_object
Version:
latest (0.0.1)
0.0.1
checks if value is an object
github.com/nathanfaucett/is_object
nathanfaucett/is_object
@nathanfaucett/is_object
/
src
/
index.js
11 lines
(6 loc)
•
220 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
var
isNull =
require
(
"@nathanfaucett/is_null"
);
module
.
exports
= isObject;
function
isObject
(
value
) {
var
type
=
typeof
(value);
return
type
===
"function"
|| (!
isNull
(value) &&
type
===
"object"
) ||
false
; }