UNPKG

mathjs

Version:

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif

10 lines (7 loc) 211 B
'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;