UNPKG

scancss

Version:

A robust CSS stylesheet statistics collector and analyzer

9 lines (8 loc) 259 B
"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); }