Skip to content

cecchi/dom-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

dom-utils

A collection of DOM-related utility functions

Methods

.toElementArray(HTMLElement|Array|NodeList|String)

Creates a native JavaScript array of HTMLElements from a NodeList, Query Selector, or a single HTMLElement

.getAncestry(HTMLElement, Integer)

Finds ancestors of a given HTMLElement, optionally limited to a specified number.

.getCommonAncestor(HTMLElement|Array|NodeList|String)

Finds the common ancestor of a set of HTMLElements.

About

A collection of DOM-related utility functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published