dom-contains

0.2.0 • Public • Published

dom-contains

Determines whether or not one HTMLElement is or contains another HTMLElement.

This is a commonjs clone for Y.DOM.contains.

var contains = require('dom-contains');

contains(element, needle)

Return a boolean.

Whether or not the element is or contains the needle.

element

Type: HTMLElement

The containing html element.

needle

Type: HTMLElement

The html element that may be contained.

Readme

Keywords

Package Sidebar

Install

npm i dom-contains

Weekly Downloads

5

Version

0.2.0

License

MIT

Last publish

Collaborators

  • zoubin