just-type

1.0.2 • Public • Published

just-type

type checking.

import type from 'just-type';
 
function hello() {
    console.log('hello type');
}
 
type(); // undefined
type(undefined); // undefined
type(null); // null
type(''); // string
type('hello'); // string
type(0); // number
type(true); // boolean
type({}); // object
type([]); // array
type(hello); // function
type(/\./); // regexp

Package Sidebar

Install

npm i just-type

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • justclear