@pengzhanbo/utils - v3.7.3
    Preparing search index...

    Function objectKeys

    • Strict typed Object.keys

      严格类型的 Object.keys

      Type Parameters

      • T extends object

        The type of elements in the array / 数组元素的类型

      Parameters

      • obj: T

        The object to get keys from. 要获取键的对象

      Returns (`${keyof T & string}` | `${keyof T & number}`)[]

      An array of the object's own enumerable property keys. 对象自身可枚举属性键的数组

      objectKeys({ a: 1, b: 2 }) // => ['a', 'b']