JavaScript275 Documents

Unparenthesized Single Parameter

Omit parentheses around a single arrow-function parameter whenever JavaScript syntax permits it.

Correct

const double = value => value * 2

Incorrect

const double = (value) => value * 2

Fix

Remove parentheses around single identifier parameters in arrow functions.