miolo-model 3.0.0-beta.179 → 3.0.0-beta.180

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miolo-model",
3
- "version": "3.0.0-beta.179",
3
+ "version": "3.0.0-beta.180",
4
4
  "description": "Data models for miolo world",
5
5
  "author": "Donato Lorenzo <donato@afialapis.com>",
6
6
  "contributors": [
@@ -96,4 +96,12 @@ export default class MioloArray extends CacheMixin(Array) {
96
96
  this[this.length] = item
97
97
  return item
98
98
  }
99
+
100
+ clone() {
101
+ const clonedItems = []
102
+ this.forEach((item) => {
103
+ clonedItems.push(item.clone())
104
+ })
105
+ return new MioloArray(this.itemClass, clonedItems)
106
+ }
99
107
  }