0.5.0 • Published 1 year ago

@domp/closest v0.5.0

Weekly downloads
1
License
MIT
Repository
github
Last release
1 year ago

@domp/closest

Select all closest ancestor to a DOM node matching an optional criteria

Usage

import closest from '@domp/closest'

closest(el, selector, stop)

Functional Programming

Like lodash, @domp wraps the regular functions to produce a auto-curried, iteratee-first and data-last version. Currently the last, optional argument (stop) is not available in the FP version.

import closest from '@domp/closest/fp'

closest(selector)(el)

// or

closest(selector, el)
0.5.0

1 year ago

0.4.0

3 years ago

0.3.0

5 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago