micro-typeof icon indicating copy to clipboard operation
micro-typeof copied to clipboard

✍🏿Get the exact type of a value

Micro TypeOf

npm travis downloads/month pullrequest firsttimersonly

Installation

npm add micro-typeof

Usage

import typeOf from 'micro-typeof';

typeOf([0, 1]) // array
typeOf({ name: 'Ademola' }) // object
typeOf(Symbol('foo') // symbol
typeOf(() => {}) // function

LICENSE

MIT