mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-24 23:04:32 -04:00
Added further utility functions
This commit is contained in:
@@ -35,6 +35,6 @@
|
||||
*/
|
||||
export function toArray<
|
||||
T extends HTMLElement
|
||||
>(collection: HTMLCollection): T[] {
|
||||
>(collection: HTMLCollection | NodeListOf<T>): T[] {
|
||||
return Array.from(collection) as T[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user