Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-element

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-element - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

bower.json

27

is-element.js

@@ -1,6 +0,21 @@

module.exports = function(value){
return value !== undefined
&& typeof HTMLElement !== 'undefined'
&& value instanceof HTMLElement
&& value.nodeType === 1;
}
(function(root) {
function isElement(value) {
return (value && value.nodeType === 1) &&
(value && typeof value == 'object') &&
(Object.prototype.toString.call(value).indexOf('Element') > -1);
}
if (typeof exports !== 'undefined') {
if (typeof module !== 'undefined' && module.exports) {
exports = module.exports = isElement;
}
exports.isElement = isElement;
} else if (typeof define === 'function' && define.amd) {
define([], function() {
return isElement;
});
} else {
root.isElement = isElement;
}
})(this);
{
"name": "is-element",
"version": "0.0.1",
"version": "0.1.0",
"description": "Returns true if dom element",

@@ -5,0 +5,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc