Added test

This commit is contained in:
2018-03-07 03:46:44 +01:00
parent 999323f850
commit f0b3a8869e
4 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,6 @@
export function* findAll(className: string): IterableIterator<HTMLElement> {
let elements = document.getElementsByClassName(className)
for(let i = 0; i < elements.length; ++i) {
yield elements[i] as HTMLElement
}