Pattern: Non-standard Promise
method usage
Issue: -
Using non-standard Promise
static methods can increase maintenance costs and reduce code portability. Stick to standardized Promise
methods defined in the ECMAScript specification.
Example of incorrect code:
Promise.done();
Example of correct code:
Promise.resolve();