Socket
Book a DemoInstallSign in
Socket

fd-isdom

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fd-isdom

Check if an object is a dom object

latest
Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
0
-100%
Maintainers
2
Weekly downloads
 
Created
Source

fd-isDom

Build Status npm version

Check if an object is a dom object

Installation

npm install fd-isdom --save

Usage

var isDom = require('fd-isdom');
var ifElse = require('fj-ifelse');
var div = document.createElement('div');

ifElse(
  isDom(),
  () => console.log('yes'),
  () => console.log('no')
)(div);

API

isDom

Checks if a object is a dom object

isDom()

Parameters

NameTypeDescription
obj*Object to be checked

Returns

TypeDescription
functionA function that checks if the passed value is a dom object

Keywords

fp-dom

FAQs

Package last updated on 04 Feb 2015

Did you know?

Socket

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