Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 350 Bytes

prefer-object-spread.md

File metadata and controls

13 lines (7 loc) · 350 Bytes

Pattern: Use of Object.assign()

Issue: -

Description

Enforces the use of the ES2015 object spread operator over Object.assign() where appropriate.

Rationale: Object spread allows for better type checking and inference.

Further Reading