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
16 lines (12 loc) • 379 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.errorTransform = errorTransform;
var _IndexError = require("../../../error/IndexError");
function errorTransform(err) {
if (err && err.isIndexError) {
return new _IndexError.IndexError(err.index + 1, err.min + 1, err.max !== undefined ? err.max + 1 : undefined);
}
return err;
}