Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 509 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 509 Bytes

@littlelane/data-type

npm (scoped) npm bundle description (test demo)

It's the the npm module for type of data!

Gets type of a parameter.

Install

npm install @littlelane/data-type

Usage

> const dataType = require('@littlelane/data-type');

> dataType('good');
> // => string

> dataType(undefined);
> // => undefined

> dataType([]);
> // => array