Array sorting is broken with Bigint In JS?

前端 未结 0 1949
青春惊慌失措
青春惊慌失措 2020-12-24 15:09

It seems like Array.prototype.sort() is broken with BigInt

This works

const big = [1n, 2n, 3n, 4n];
big.sort();
console.log(b         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题