Closed husainsr closed 5 years ago
value
is an internal property, it contains the native BigInt in browsers, that support it, and array in other browsers
It is compatible with IE/Microsoft Edge ?
How would i get value from this.
Can anyone please answer me for the same.
@husainsr , Google Chrome has BigInt support, so this library uses the native BigInt internally. Edge does not support BigInt, so this library uses the array internally. So you will not be able to get the BigInt value in current version of Edge. You can use the objects provided by this library instead and convert them from/to a string. See https://github.com/peterolson/BigInteger.js/blob/master/README.md.
Sorry this is not a feasible solution.
I had wrote
let a = long('140627929000000122')['value']
; works fine in Google chrome but in IE/Microsoft Edge i got comma separated value like [146, 2792900, 4406]