source: trip-planner-front/node_modules/p-try/index.js@ 1ad8e64

Last change on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 211 bytes
Line 
1'use strict';
2
3const pTry = (fn, ...arguments_) => new Promise(resolve => {
4 resolve(fn(...arguments_));
5});
6
7module.exports = pTry;
8// TODO: remove this in the next major version
9module.exports.default = pTry;
Note: See TracBrowser for help on using the repository browser.