0.0.3 • Published 3 years ago

@finnn/type v0.0.3

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

@Finnn/type

Check out object real type

Installation

npm install @finnn/type

Usage

const typeOf = require('@finnn/type') //with nodejs

or

import typeOf from '@finnn/type' //with webpack

Example:

typeOf(null),               // null
typeOf(()=>{}),             // function
typeOf(undefined),          // undefined
typeOf(new Set()),          // set
typeOf(new Map()),          // map
typeOf(new Date()),         // date
typeOf(new Array()),        // array
typeOf(new Error()),        // error
typeOf(new RegExp()),       // regexp
typeOf(new WeakMap()),      // weakmap
typeOf(new WeakSet()),      // weakset
typeOf(new Promise(() => {})),  // promise
typeOf(new ArrayBuffer()),      // arraybuffer
typeOf(new Int8Array()),        // int8array
typeOf(new Uint8Array()),       // uint8array
...
0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago