Socket
Socket
Sign inDemoInstall

iselement

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    iselement

Utility function that returns `true` if referenced object is DOM element.


Version published
Weekly downloads
49K
increased by5.99%
Maintainers
1
Install size
9.76 kB
Created
Weekly downloads
 

Changelog

Source

1.1.4 (2016-08-30)

Bug Fixes

  • fix dev workflow (e184717)

<a name="1.1.3"></a>

Readme

Source

isElement

Utility function that returns true if referenced object is DOM element.

Most similar functions just checks, if object is instance of HTMLElement. That does not always work, because it exotic elements like SVG polygons.

How to use

import isElement from 'iselement';

isElement(my_object);  // --> true/false

Documentation

isElement

Returns true if provided input is Element.

Parameters

  • input [Any]

Returns boolean

FAQs

Last updated on 30 Aug 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc