parcoursup/node_modules/loupe/lib/bigint.js
lalBi94 7bc56c09b5 $
2023-03-05 13:23:23 +01:00

8 lines
250 B
JavaScript

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')
}