move keysOf into a new utilities file
This commit is contained in:
parent
266d23f7bb
commit
c1b22998a1
3 changed files with 5 additions and 5 deletions
3
source/utilities.ts
Normal file
3
source/utilities.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export function keysOf<T extends Record<PropertyKey, unknown>>(value: T): Array<keyof T> {
|
||||
return Object.keys(value) as Array<keyof T>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue