Function errorData

Extracts the enumerable properties from an Error object and returns them in a new object.

  • Parameters

    • error: Error

      The Error object.

    Returns {}

    • An object containing the enumerable properties of the Error object.