* Clears this selection and adds the given objects. * * @param {Iterable } objects - The objects that should be selected. * @return {Selection} This selection.
(objects)
| 163 | */ |
| 164 | |
| 165 | set(objects) { |
| 166 | |
| 167 | this.clear(); |
| 168 | |
| 169 | for(const object of objects) { |
| 170 | |
| 171 | this.add(object); |
| 172 | |
| 173 | } |
| 174 | |
| 175 | return this; |
| 176 | |
| 177 | } |
| 178 | |
| 179 | /** |
| 180 | * An alias for {@link has}. |
no test coverage detected