• Processes and map each prop key in the object

    Parameters

    • object: any

      the object to inspect

    • Optionalcallback: ((key: string, index: number) => any)

      the callback function that processes each prop key

        • (key, index): any
        • Parameters

          • key: string
          • index: number

          Returns any

    Returns any[] | undefined