Replace Union hard

by Konstantin Barabanov @crutch12

Take the Challenge

Given an `union of types` and `array of type pairs` to replace (`[[string, number], [Date, null]]`), return a new union replaced with the `type pairs`.
Back Share your Solutions Check out Solutions