123. implement Promise.prototype.finally()

medium  - accepted / - tried

Promise.prototype.finally() could be used to run a callback when a promise is settled(either fulfilled or rejected).

Notice that the callback passed finally() doesn't receive any argument, meaning it doesn't modify the value in the promise chain (care for rejection).

Bugfree ordinary solution is better than buggy fancy ones.

(1)
(62)