Function keys

  • Get all object keys

    Will return an empty array if obj is null/undefined

    Type Parameters

    • T extends object

    Parameters

    • obj: T

    Returns (KeyOfDistributive<T> & string)[]