UNPKG

tough-rational

Version:

Rational class using BigInt with fallback to bignumber.js

9 lines (6 loc) 211 B
'use strict'; const restoreConstructor = (classFunction) => Object.defineProperty(classFunction.prototype, 'constructor', { enumerable: false, value: classFunction }); module.exports = restoreConstructor;