MK
Size: a a a
MK
НС
> Object.prototype[2]=42
42
> [0,1,,3]
[ 0, 1, <1 empty item>, 3 ]
> [0,1,,3].includes(42)
true
> [0,1,,3].includes
[Function: includes]
> [0,1,,3].includes + ''
'function includes() { [native code] }'
> Array(100).includes(42)
true
> new Set(Array(4))
Set { undefined, 42 }
НС
SR
SR
НС
НС
SR
MK
> Object.prototype[2]=42
42
> [0,1,,3]
[ 0, 1, <1 empty item>, 3 ]
> [0,1,,3].includes(42)
true
> [0,1,,3].includes
[Function: includes]
> [0,1,,3].includes + ''
'function includes() { [native code] }'
> Array(100).includes(42)
true
> new Set(Array(4))
Set { undefined, 42 }
НС
MK
В
НС
> const x = {['__proto__']:[]}
{ __proto__: [] }
> Object.assign({}, x)
Array {}
> {...x}
{ __proto__: [] }
НС
НС
M
M
JD
НС