()
| 14 | } |
| 15 | |
| 16 | getState() { |
| 17 | const list = new Array(); |
| 18 | |
| 19 | Array.from(this.#state.entries()).forEach(([key, value]) => { |
| 20 | const clone = JSON.parse(key); |
| 21 | let i = 0; |
| 22 | while (i< value) { |
| 23 | list.push(clone); |
| 24 | i++; |
| 25 | }; |
| 26 | }); |
| 27 | |
| 28 | return list; |
| 29 | } |
| 30 | |
| 31 | getHistory() { |
| 32 | return this.#history; |