Number.MAX_VALUEis not a valid array index. According to specification:
An integer index is the key of the String-value property, which is a canonical numeric string (see 7.1.16) and whose numeric value is +0 or a positive integer ≤ 2 53 -1. The array index is an integer index whose numerical value is in the range +0 ≤ i <2 32 & minus ;. 1
, , , ( , ):
var a = {};
a.prop = 'foo';
a[2 ** 32 - 2] = 'bar';
a[Number.MAX_VALUE] = 'baz';
console.log(Object.keys(a));