Have ideas to improve npm?Join in the discussion! »

    is-element

    0.1.0 • Public • Published

    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'))

    Install

    npm i is-element

    DownloadsWeekly Downloads

    193

    Version

    0.1.0

    License

    WTFPL

    Last publish

    Collaborators

    • avatar