Find closest hyperlink in DOM element
Install
$ npm install --save closest-link
Usage
Here is link Here is outer-span Here is inner-span
const closestLink = ;const targetElement = document;//=> '<a href="https://ashiknesin.com">...</a>'
License
MIT © Ashik Nesin