UNPKG
@nodesecure/js-x-ray
Version:
latest (13.0.0)
13.0.0
12.0.0
11.7.0
11.5.0
11.4.0
11.3.0
11.2.0
11.1.0
11.0.1
11.0.0
10.2.1
10.2.0
10.1.0
10.0.0
9.2.0
9.1.0
9.0.0
8.2.0
8.1.1
8.1.0
8.0.0
7.3.0
7.2.0
7.1.1
7.1.0
7.0.0
6.3.0
6.2.1
6.2.0
6.1.1
6.1.0
6.0.1
6.0.0
5.1.0
5.0.1
5.0.0
4.5.0
4.4.0
4.3.0
4.2.1
4.2.0
4.1.2
4.1.1
4.1.0
4.0.1
4.0.0
JavaScript AST XRay analysis
github.com/NodeSecure/js-x-ray
NodeSecure/js-x-ray
@nodesecure/js-x-ray
/
src
/
utils
/
isNode.js
6 lines
(5 loc)
•
156 B
JavaScript
View Raw
1
2
3
4
5
6
export
function
isNode
(
value
) {
return
( value !==
null
&&
typeof
value ===
"object"
&&
"type"
in
value &&
typeof
value.
type
===
"string"
); }