(collection)
| 16 | } |
| 17 | |
| 18 | static from(collection) { |
| 19 | let group = new Group; |
| 20 | for (let value of collection) { |
| 21 | group.add(value); |
| 22 | } |
| 23 | return group; |
| 24 | } |
| 25 | |
| 26 | [Symbol.iterator]() { |
| 27 | return new GroupIterator(this.#members); |
no test coverage detected