Skip to content

y14e/closest-within-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 

Repository files navigation

closest-within.ts

TS snippet for the closest() method within the scope.

Usage

import { closestWithin } from './closest-within';

closestWithin(element, selector, scope);
// => Element | null
//
// element: Element
// selector: string
// scope (optional): Element (default: document.documentElement)

About

TS snippet for the closest() method within the scope.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors