Tuple to Object easy

by sinoon @sinoon

Take the Challenge

Given an array, transform to a object type and the key/value must in the given array. For example ```ts const tuple = ['tesla', 'model 3', 'model X', 'model Y'] as const const result: TupleToObject // expected { tesla: 'tesla', 'model 3': 'model 3', 'model X': 'model X', 'model Y': 'model Y'} ```
Back Share your Solutions Check out Solutions