Typescript Turn Type Into Array In Javascript Interview Questions