Newer
Older
alert / js / node_modules / p-try / index.js
@Réz István Réz István on 18 Nov 2021 211 bytes first commit
'use strict';

const pTry = (fn, ...arguments_) => new Promise(resolve => {
	resolve(fn(...arguments_));
});

module.exports = pTry;
// TODO: remove this in the next major version
module.exports.default = pTry;