nsuite / getObjectKeys
Function: getObjectKeys()
getObjectKeys<
T>(obj): keyofT[]
Defined in: UtilsType.ts:44
Get typed enumerable property keys from an object
Type Parameters
T
T extends object
Parameters
obj
T
Returns
keyof T[]
Example
ts
import { getObjectKeys } from 'nsuite'
console.log(getObjectKeys({ foo: 1 }))