Skip to content

Files

Latest commit

 

History

History
14 lines (9 loc) · 490 Bytes

no-function-expression.md

File metadata and controls

14 lines (9 loc) · 490 Bytes

Pattern: Use of function expression

Issue: -

Description

Do not use function expressions; use arrow functions (lambdas) instead. In general, lambdas are simpler to use and avoid the confusion about what the this references points to. Function expressions that contain a this reference are allowed and will not create a failure.

Further Reading