Typescript Get Enum Value From String To Object Array In Javascript