diff --git a/packages/behavior/item/collection.js b/packages/behavior/item/collection.js index 401ce41..4b491cf 100644 --- a/packages/behavior/item/collection.js +++ b/packages/behavior/item/collection.js @@ -23,6 +23,13 @@ export function Collection(type) { } } + createClone() { + const Items = this.constructor; + const items = new Items(); + items.clone(this); + return items; + } + count() { return this[plural].length; }