← Back To API Reference

.done

.done(
    [function(any value) fulfilledHandler],
    [function(any error) rejectedHandler]
) -> undefined

Like .then, but any unhandled rejection that ends up here will crash the process (in node) or be thrown as an error (in browsers). The use of this method is heavily discouraged and it only exists for historical reasons.