Function ownKeys

  • Returns the string and symbol keys of the own properties of an object. The own properties of an object are those that are defined directly on that object, and are not inherited from the object's prototype.

    Parameters

    • target: object

      Object that contains the own properties.

    Returns (string | symbol)[]