@eagleoutice/flowr - v2.17.16
    Preparing search index...

    Function deepCloneSharing

    • Deep clones obj and keeps the shape of what it reaches: an object reached twice is cloned once, cycles are kept, and class instances (including those of Map, Set, and Array subclasses) keep their prototype. Functions, and every object keep says so of, are shared by reference instead of cloned. fields may state for a class instance which of its properties are left out or copied in a way of their own, see ClonedFields.

      Type Parameters

      • T

      Parameters

      • obj: T
      • keep: (o: object) => boolean
      • Optionalfields: (owner: object) => ClonedFields | undefined

      Returns T