UNPKG

turtle-express

Version:

`turtle-express` is kinda a framework or a library based on `express.js` with an opinionated express router with type safety and schema validation with zod. Also many [more features](https://github.com/mm-ninja-turtles/turtle-express/discussions/7) planni

8 lines (7 loc) 231 B
/** * Return `typed` object keys as array. * Source from [matt pocock](https://www.youtube.com/watch?v=GW00zebIt0g) */ export function ObjectKeys<Obj>(obj: Obj): Array<keyof Obj> { return Object.keys(obj) as Array<keyof Obj> }