mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-03 04:10:04 +02:00
11 lines
219 B
JavaScript
11 lines
219 B
JavaScript
"use strict";
|
|
|
|
module.exports = function (t) {
|
|
return function isVoid0(expr) {
|
|
return t.isUnaryExpression(expr, {
|
|
operator: "void"
|
|
}) && t.isNumericLiteral(expr.argument, {
|
|
value: 0
|
|
});
|
|
};
|
|
}; |