mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
c6b22c57f8
Co-authored-by: Fábio Santos <fabiosantosart@gmail.com>
18 lines
341 B
JavaScript
18 lines
341 B
JavaScript
var obj = { undefined: 1, NaN: 2, Infinity: 3, "-Infinity": 4, null: 5 };
|
|
console.log(
|
|
obj[void 0],
|
|
obj[undefined],
|
|
obj["undefined"],
|
|
obj[0 / 0],
|
|
obj[NaN],
|
|
obj["NaN"],
|
|
obj[1 / 0],
|
|
obj[Infinity],
|
|
obj["Infinity"],
|
|
obj[-1 / 0],
|
|
obj[-Infinity],
|
|
obj["-Infinity"],
|
|
obj[null],
|
|
obj["null"]
|
|
);
|