• Returns a prototype-free, shallow-immutable, version of the provided object, without modifying the original object.

    If the object already matches the criteria, it is returned as-is.

    Type Parameters

    • T extends object

    Parameters

    • obj: T

      The object.

    Returns T

    The immutable version of the object.