0.2.1 • Published 4 years ago

devtools-type v0.2.1

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

devtools - type - developer tool to detect type of value

Install

With npm:

npm install devtools-type

With yarn:

yarn add devtools-type

Usage

const type = require('devtools-type')

console.log(type.typeOf('hello world'))
console.log(type.typeOf({}))
console.log(type.typeOf([]))
console.log(type.is.string('123'))
console.log(type.is.string(1))
console.log(type.isNot.string(1))

Result: example

License

MIT