/data-type

The npm module for type of data

Primary LanguageJavaScriptMIT LicenseMIT

@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