Some of the new features are still proposal / not compatible in all browsers. So if you are playing with the code, try to use Google Chrome.
And some of them may
We can multiply 1234567890123456789n * 123n and obtain the correct value if we use BigInt.
const array = [ 1, [2 , [3 , 4 , [5 , 6 ] ]]]
The output will be 1 2 3 4 5 6. if we use Infinity it will recursively convert to a flat list.
We have use Object.entries in many cases. It will return an array from an object. Similarly, we can use the Object.fromEntries that will return the object from an array.