Code Inspection: Function expression is used instead of arrow function

Last modified: 13 May 2022

Configure inspections: Settings / Preferences | Editor | Inspections

Show intention actions: Alt+Enter

Reports a function expression. Suggests converting it to an arrow function.

Example:

After applying the quick-fix the code looks as follows: