1.0.0 • Published 6 years ago

iskindof v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

isKindOf

Why

For example in JavaScript typeof {} and [] both are object, so this module is a simple to check what it is.

How to use it

npm i iskindof --save

API

const iskindof = require('iskindof')

iskindof.isString('string') === true
iskindof.isArray([]) === true
iskindof.isFunction(function(){}) === true
iskindof.isNumber(1) === true
iskindof.isBoolean(true) === true
iskindof.isObject({}) === true
iskindof.isUndefined(Undefined) === true
iskindof.isObject({}) === true
iskindof.isDate(new Date()) === true

LICENSE

MIT

1.0.0

6 years ago

0.0.2

9 years ago

0.0.1

9 years ago