Turn Array Into String Typescript Map Object Is Not Subscriptable