JSPM

is-element

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 689
  • Score
    100M100P100Q81374F
  • License WTFPL

Returns true if dom element

Package Exports

  • is-element

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-element) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

is-element

Returns true if dom element, false if not

Getting Started

npm install is-element

is-element is meant to be consumed in a CommonJS, Browserify environment:

var isElement = require('is-element')

// returns true, assuming a node with class `element` exists
isElement(document.querySelector('.element'))