moco.moco_common.ecmascript_interpretation.is_literal

moco.moco_common.ecmascript_interpretation.is_literal(expr: str, elem: _Element | None) bool

Evaluate if the expression contains only a literal (or an array expression).