parcoursup/node_modules/loupe/lib/bigint.js

8 lines
250 B
JavaScript
Raw Normal View History

2023-03-05 13:23:23 +01:00
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')
}