promise.reject()
Difficulty: easy
Implement promiseReject(reason), a small version of Promise.reject.
It should return a promise that is already rejected with the provided reason.
Difficulty: easy
Implement promiseReject(reason), a small version of Promise.reject.
It should return a promise that is already rejected with the provided reason.