React Typescript Loop Through Object In Javascript Mdn String