Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 453 Bytes

unnecessary-bind.md

File metadata and controls

13 lines (7 loc) · 453 Bytes

Pattern: Unnecessary bind on function

Issue: -

Description

Prevents unnecessary and/or misleading scope bindings on functions.

Rationale: function expressions that are immediately bound to this are equivalent to () => arrow lambdas. Additionally, there’s no use in binding a scope to an arrow lambda, as it already has one.

Further Reading