@corefunc/corefunc
    Preparing search index...

    Function objectBasicClone

    • Type Parameters

      • ValueType

      Parameters

      • value: ValueType

        The object to be cloned. This can be any structured-clonable type.

      • Optionaltransfer: Transferable[]

        An list of transferable objects in value that will be moved rather than cloned to the returned object.

      Returns ValueType

      The returned value is a deep copy of the original value.

      objectBasicClone

      Creates a deep clone of a given value using the structured clone algorithm. Do not throw errors if structured cloning is not possible. In case of failure returns the same variable. You can check it with Object.is(originalVariable, clonedVariable). Requires: NodeJS v17.0.0, Firefox v94.

      0.3.20