Initial commit

This commit is contained in:
Igor Martyniuk
2026-06-25 15:53:49 +03:00
commit 1bb0b7e68a
1517 changed files with 218469 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
/**
* Return an array of keys from an object.
*
* @param object - The object from which to extract the keys.
* @returns An array of keys from the object.
*
* @example
* const obj = { a: 1, b: 2, c: 3 };
* const result = keys(obj);
* // result: ['a', 'b', 'c']
*/
export function keys<T extends object>(object: T): (keyof T)[] {
return Object.keys(object) as (keyof T)[];
}