Skip to content

getAllEntries<T>

Gets all entries of an object.

Import:

import { getAllEntries } from 'obsidian-dev-utils/object-utils';

Signature:

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

Parameters:

ParameterTypeDescription
objTThe object to get the entries of.

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