UNPKG
scancss
Version:
latest (1.5.0)
1.5.0
1.4.2
1.4.1
1.4.0
1.3.2
1.3.1
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0
A robust CSS stylesheet statistics collector and analyzer
github.com/everget/scancss
everget/scancss
scancss
/
dist
/
predicates
/
isSafeAst
/
index.js
9 lines
(8 loc)
•
259 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
isSafeAst
= isSafeAst;
function
isSafeAst
(
ast
) {
return
ast !==
undefined
&&
Array
.
isArray
(ast.
nodes
) && ast.
nodes
[
0
] !==
undefined
&&
Array
.
isArray
(ast.
nodes
[
0
].
nodes
); }