@pakal/tag-of
Tag Of is package from Pakal library
Install
$ yarn add @pakal/tag-of
Or
$ npm install --save @pakal/tag-of
Use
Module
import {
default as tagOf
} from '@pakal/tag-of';
Browser
<script src="https://unpkg.com/@pakal/tag-of/bundle.umd.min.js"></script>
let {
tagOf
} = _;
Examples
tagOf(); // => 'Undefined'
tagOf({}); // => 'Object'
tagOf('foo'); // => 'String'
tagOf(Object(1)); // => 'Number'
tagOf({[Symbol.toStringTag]: 'Some'}); // => 'Some'
License
Copyright © Yisrael Eliev, Licensed under the MIT license.