result // readonly 로 읽기 전용으로 만들고 T 인터페이스에서 받아논 S는 인터페이스의 키중의 하나 : 인터페이스의 키
Give an array, transform into an object type and the key/value must in the given array.For example배열로 가지고오는 것을 객체 타입에 키와 값으로서 배열의 인덱스를 가져오면된다result