Library API
    Preparing search index...

    Function purge

    • Removes all own properties from an object or array.

      Type Parameters

      Parameters

      • obj: T

        The object or array to purge

      Returns T

      The mutated object reference

      purge({ a: 1 }); // {}