You can access JavaScript object properties that have spaces in the name by using the bracket property accessor notation, like so:

const obj = { 'Foo Bar': 123 };

console.log(obj['Foo Bar']); // 123

It's the same even if the object property name has spaces at start or the end:

const obj = { ' Foo Bar ': 123 };

console.log(obj[' Foo Bar ']); // 123