Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function payItForward2($step: Step) {
const $equation = $step.$('x-equation') as EquationSystem;
const close = Expression.parse('3^n');
$equation.validate = (expr: ExprElement) => {
if (Expression.numEquals(expr, close))
return {error: 'pay-it-forward-close'};
};
}