UNPKG

vanzy-protect

Version:

Epic Obfuscator Yeahhh

14 lines (12 loc) 442 B
import { assignmentExpression } from './assignmentExpression' import { rightExpression } from './rightExpression' import { variableDeclaration } from './variableDeclaration' export function forConditionSection(expr: any) { if (expr.type === 'VariableDeclaration') { return variableDeclaration(expr) } else if (expr.type === 'AssignmentExpression') { return assignmentExpression(expr) } // last resort return rightExpression(expr) }