add new method Objectmap.getArray()

This commit is contained in:
2016-09-29 22:05:20 +02:00
parent 30e23a77b7
commit 924058c90a
5 changed files with 60 additions and 28 deletions

View File

@ -82,4 +82,11 @@ export class Objectmap<T> {
wipe() {
this.objectArray = []
}
/**
* returns a cloned array of all the objects currently in the Objectmap
*/
getArray() {
return plugins.lodash.cloneDeep(this.objectArray)
}
}