mobx-keystone

    Function clone

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

      Type Parameters

      • T extends object

        Object type.

      Parameters

      • node: T

        Object to clone.

      • Optionaloptions: Partial<CloneOptions>

        Options.

      Returns T

      The cloned object.

    MMNEPVFCICPMFPCPTTAAATR