UNPKG

tough-rational

Version:

Rational class using BigInt with fallback to bignumber.js

14 lines (11 loc) 174 B
'use strict'; function testForBigInt() { try { return Boolean(BigInt(1)); } catch (e) { return false; } } Object.assign(module.exports, { testForBigInt });