How to use 'non-arrow functions are forbidden' in JavaScript

Every line of 'non-arrow functions are forbidden' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
22function CheckInvalidArrow(arrow, args = "") {
23 CheckInvalid("(" + arrow + ")(" + args + ")");
24 CheckInvalid("var f = " + arrow + "; f(" + args + ")");
25}

Related snippets