1.1.1 • Published 9 years ago

fd-isdom v1.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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
1.1.1

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago