Skip to content

getAllEntries<T>

Gets all entries of an object.

Import:

import { getAllEntries } from '@mnaoumov/typescript-lib/object-utils';

Signature:

function getAllEntries($object: T): [StringKeys<T>, T[StringKeys<T>]][]

Parameters:

Parameter Type Description
$object T

Returns: [StringKeys<T>, T[StringKeys<T>]][] — An array of all entries of the object.