Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 362 Bytes

prefer-exponentiation-operator.md

File metadata and controls

19 lines (11 loc) · 362 Bytes

Prefer the exponentiation operator over Math.pow()

Enforces the use of the exponentiation operator over Math.pow().

This rule is fixable.

Fail

Math.pow(2, 4);

Pass

2 ** 4