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

1.0.7 • Public • Published

typeof-util

Build Status npm version

Description:

A simple TypeScript utility function that acts as an enhanced version of the typeof operator by adding support for returning "array" and "null". JavaScript UMD and TypeScript declaration file will be generated when building the package.

Installation:

npm install typeof-util

Usage:

import typeOf from 'typeof-util';

...

typeOf(true)  // 'boolean'
typeOf({})    // 'object'
typeOf([])    // 'array'
typeOf(null)  // 'null'

Package Sidebar

Install

npm i typeof-util

Weekly Downloads

38

Version

1.0.7

License

Apache

Unpacked Size

15.9 kB

Total Files

5

Last publish

Collaborators

  • codybonney