Skip to content

getAllKeys<T>

Gets all keys of an object. Includes fields and properties.

Import:

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

Signature:

function getAllKeys(obj: T): StringKeys<T>[]

Parameters:

ParameterTypeDescription
objTThe object to get the keys of.

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