Typescript String Match Object Is Not Iterable Javascript W3schools