Library API
    Preparing search index...

    Function allDescriptors

    • Creates a new object and shadow-copies all own-descriptors (including getters/setters) from the source object.

      Type Parameters

      • T extends object

      Parameters

      • source: T

        The object to copy descriptors from

      Returns T

      A new object with identical descriptors

      const clone = allDescriptors(source);