Skip to content

Pushing values in bint

To allocate numbers in bint, you have to call your instance with what you want to allocate. For example:

js
let myInstance = bint()
myInstance(10)(34)
console.log(myInstance[0]) // 10

TIP

A index in the array, once filled, cannot be refilled. You can only allocate a index's value once.

You can keep calling and allocating values to the instance.

Demo

Console
No logs yet.