Skip to content

objectEntries

Same as Object.entries but better type.

Type Declarations

Details
ts
/**
 * Strict typed `Object.entries`
 *
 * @link https://github.com/antfu/utils/blob/main/src/object.ts
 * @see {@link https://s3xysteak.github.io/fnclip/functions/object/objectEntries/}
 */
export declare function objectEntries<T extends object>(obj: T): Array<[keyof T, T[keyof T]]>;

Source

Source