Tuple to Object
Easy
0.0% Acceptance
Given an array, transform it into an object type and the key/value must be in the provided array.
For example:
const tuple = ['tesla', 'model 3', 'model X', 'model Y'] as const type result = TupleToObject<typeof tuple> // expected { 'tesla': 'tesla', 'model 3': 'model 3', 'model X': 'model X', 'model Y': 'model Y'}