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($object: T): StringKeys<T>[]

Parameters:

ParameterTypeDescription
$objectT

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