@pakal/type-of
Type Of is package from Pakal library
Install
$ yarn add @pakal/type-of
Or
$ npm install --save @pakal/type-of
Use
Module
import {
$bigint,
$boolean,
$function,
$null,
$number,
$object,
$string,
$symbol,
$undefined,
ITypeKeys,
default as typeOf
} from '@pakal/type-of';
Browser
<script src="https://unpkg.com/@pakal/type-of/bundle.umd.min.js"></script>
let {
$bigint,
$boolean,
$function,
$null,
$number,
$object,
$string,
$symbol,
$undefined,
typeOf
} = _;
Examples
typeOf('foo'); // => 'string'
typeOf(Object('foo')); // => 'object'
typeOf(null); // => 'null'
typeOf(v => v); // => 'function'
typeOf(SymbolPolyfill('foo')); // => 'object'
typeOf(BigIntPolyfill(1)); // => 'object'
License
Copyright © Yisrael Eliev, Licensed under the MIT license.