I have a getData () {...} function, inside it with fetch () and .then an object is populated which is declared in the global scope
getData () {...}
fetch ()
.then