typuv
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

NPM NPM GitHub Workflow Status

typuv

import typuv from "typuv";

const typeOfNull = typuv(null);
console.log(typeOfNull); // 'null'

const typeOfArray = typuv([]);
console.log(typeOfArray); // 'array'

// instead of

const unpredictableTypeOfNull = typeof null;
console.log(unpredictableTypeOfNull); // 'object'

const unpredictableTypeOfArray = typeof [];
console.log(unpredictableTypeOfArray); // 'object'

This package is silly and you shouldn't use it, but if you do: it is reliable and has no dependencies.

Readme

Keywords

none

Package Sidebar

Install

npm i typuv

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

14.9 kB

Total Files

28

Last publish

Collaborators

  • mattjohnston