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