npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

fd-isvdom

1.0.1

@hemanth

npmHomeRepoSnykSocket
Downloads:7
$ npm install fd-isvdom
DailyWeeklyMonthlyYearly

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