1.0.0 • Published 2 years ago

typuv v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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.