bigint.js 250 B

1234567
  1. import { truncate, truncator } from './helpers'
  2. export default function inspectBigInt(number, options) {
  3. let nums = truncate(number.toString(), options.truncate - 1)
  4. if (nums !== truncator) nums += 'n'
  5. return options.stylize(nums, 'bigint')
  6. }