main.js
1
2
3
4
5
6
7
const nothing = undefined;
const missingObject = null;
const two = 2;

console.log({ ...nothing });       // => { }
console.log({ ...missingObject }); // => { }
console.log({ ...two });           // => { }
Babel Compiler v6.4.4 Copyright (c) 2014-2015 Sebastian McKenzie