move keysOf into a new utilities file

This commit is contained in:
Bjorn Stromberg 2025-06-06 08:53:13 +08:00
parent 266d23f7bb
commit c1b22998a1
3 changed files with 5 additions and 5 deletions

3
source/utilities.ts Normal file
View 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>;
}