iggs-utils - v2.4.0
    Preparing search index...

    Function keysOf

    • returns the keys of an object as an array, with proper typing.

      Type Parameters

      • T extends object

      Parameters

      Returns (keyof T)[]

      const obj = { a: 1, b: 2, c: 3 };
      const keys = keysOf(obj); // ['a', 'b', 'c']