Promises

Calling .then() on a Promise that has already resolved

Since promises have state, the promise will immediately call the function passed to .then.

See stack overflow question