Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 1.31 KB

File metadata and controls

17 lines (12 loc) · 1.31 KB

ObjectEntries medium #object

by jiangshan @jiangshanmeta

Take the Challenge

Implement the type version of Object.entries

For example

interface Model {
  name: string;
  age: number;
  locations: string[] | null;
}
type modelEntries = ObjectEntries<Model> // ['name', string] | ['age', number] | ['locations', string[] | null];

Back Share your Solutions Check out Solutions