File size: 250 Bytes
369fac9
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import { truncate, truncator } from './helpers'

export default function inspectBigInt(number, options) {
  let nums = truncate(number.toString(), options.truncate - 1)
  if (nums !== truncator) nums += 'n'
  return options.stylize(nums, 'bigint')
}