Skip to content

Files

Latest commit

 

History

History
19 lines (13 loc) · 386 Bytes

spec-only.md

File metadata and controls

19 lines (13 loc) · 386 Bytes

Pattern: Non-standard Promise method usage

Issue: -

Description

Using non-standard Promise static methods can increase maintenance costs and reduce code portability. Stick to standardized Promise methods defined in the ECMAScript specification.

Examples

Example of incorrect code:

Promise.done();

Example of correct code:

Promise.resolve();