1 | import rejectAfterWith from './rejectAfterWith.js';
|
2 |
|
3 | /**
|
4 | * Returns a function that returns a Promise that rejects with provided args.
|
5 | *
|
6 | * @function resolveWith
|
7 | * @category Higher-order
|
8 | *
|
9 | * @arg [args] - Passed in to the reject function.
|
10 | *
|
11 | * @returns {function(): Promise}
|
12 | */
|
13 | export default (...args) => rejectAfterWith(0, ...args)
|