Promise.reject method

reject(error: object) -> Promise[object]:

Parameters

  • error: object

Returns

Promise[object]