Skip to content

joenix/closest-find

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Closest Find

Find Element Closest

Install

npm i closest-find
# or
yarn add closest-find

Use

// Import Package
import closest from "closest-find";

// Get Element
var element = document.getElementById("example");

// Find Closest
closest(element, ".main"); // .main

// Check Self
closest(element, "#example", true); // #example

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published