Skip to content

4.0.1

Choose a tag to compare

@antonmedv antonmedv released this 13 Dec 10:24
· 5 commits to master since this release
80083a6
  • Added functions className, tagName, idName, and attr to simplify overriding allowed selectors.
import { finder, attr } from '@medv/finder';

finder(event.target, {
  attr: (name, value) => attr(name, value) || name.startsWith('data-my-attr-'),
});