@makefully/platypus 4.1.8 → 4.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Deep-clones plain JSON-like definitions (level pieces, entity templates, etc.)
3
+ * without sharing nested arrays or objects with the source.
4
+ *
5
+ * @method cloneDefinition
6
+ * @param {*} definition
7
+ * @return {*}
8
+ */
9
+ export function cloneDefinition (definition) {
10
+ return structuredClone(definition);
11
+ }