Does anyone know if you can use object destructuring with spaces in the property name? Maybe this cannot be done and I realize the JavaScript notation is incorrect but I can
You can assign it a valid variable name using this syntax:
var {"my name": myName, age} = obj2; // use myName here