2019-11-18 02:04:13 +00:00
|
|
|
export default function* findAll(className: string): IterableIterator<HTMLElement> {
|
2019-11-17 09:25:14 +00:00
|
|
|
const elements = document.getElementsByClassName(className)
|
2018-04-02 05:34:16 +00:00
|
|
|
|
2019-11-18 02:04:13 +00:00
|
|
|
for(const element of elements) {
|
|
|
|
yield element as HTMLElement
|
2018-04-02 14:07:52 +00:00
|
|
|
}
|
|
|
|
}
|