title: How to convert BigInt to Number in JavaScript?
body: <p>I found myself in the situation where I wanted to convert a <code>BigInt</code> value to a <code>Number</code> value. Knowing that my value is a <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger" rel="noreferrer">safe integer</a>, how can I convert it?</p>