Type Of is package from Pakal library
npm install @pakal/type-ofType Of is package from Pakal library
sh
$ yarn add @pakal/type-of
`
Or
`sh
$ npm install --save @pakal/type-of
`Use
Module
`typescript
import {
$bigint,
$boolean,
$function,
$null,
$number,
$object,
$string,
$symbol,
$undefined,
ITypeKeys,
default as typeOf
} from '@pakal/type-of';
`Browser
`html
`
`typescript
let {
$bigint,
$boolean,
$function,
$null,
$number,
$object,
$string,
$symbol,
$undefined,
typeOf
} = _;
`Examples
`typescript
typeOf('foo'); // => 'string'
typeOf(Object('foo')); // => 'object'
typeOf(null); // => 'null'
typeOf(v => v); // => 'function'
typeOf(SymbolPolyfill('foo')); // => 'object'
typeOf(BigIntPolyfill(1)); // => 'object'
``