Typescript Interface Array Key Javascript Map Function