devtools-type

0.2.1 • Public • Published

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

Package Sidebar

Install

npm i devtools-type

Weekly Downloads

1

Version

0.2.1

License

MIT

Unpacked Size

34.4 kB

Total Files

13

Last publish

Collaborators

  • vivianeflowt