1.0.0 • Published 5 years ago

data.is v1.0.0

Weekly downloads
7
License
ISC
Repository
github
Last release
5 years ago

data.is

Test data type

support:
isNull();
isUndefined();
isBoolean();
isNumber();
isString();
isObject();
isArray();
isFunction();
isMap();
isSet();
isSymbol();
isDom();
// return true or false

getType();
// return dataType

example:
import Type from 'data.is';
console.log(Type.isObject('fdf')); // result: false
console.log(Type.isObject({ name: 'name1'})); // result: true
console.log(Type.getType('fewf')); // result: String