Socket
Book a DemoInstallSign in
Socket

fd-isvdom

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fd-isvdom

Check if an object is a virtual dom object

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
2
Created
Source

fd-isVdom

Build Status npm version

Check if an object is a dom object

Installation

npm install fd-isvdom --save

Usage

var isVdom = require('fd-isvdom');
var ifElse = require('fj-ifelse');
var hello = h('.greeting', ['Hello Vdom']);

ifElse(
  isVdom(),
  () => console.log('yes'),
  () => console.log('no')
)(hello);

API

isVdom

Checks if a object is a dom object

isVdom()

Parameters

NameTypeDescription
obj*Object to be checked

Returns

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

Keywords

fp-dom

FAQs

Package last updated on 17 Aug 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