Function clone

  • Clones an object by doing a fromSnapshot(getSnapshot(value), { generateNewIds: true }).

    Type Parameters

    • T extends object

    Parameters

    • node: T

      Object to clone.

    • Optionaloptions: Partial<CloneOptions>

      Options.

    Returns T

    The cloned object.

    T Object type.