Skip to content

nsuite v2.2.1


nsuite / getObjectKeys

Function: getObjectKeys() ​

getObjectKeys<T>(obj): keyof T[]

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 }))

Released under the Apache-2.0 License.