1.0.0 • Published 5 years ago
data.is v1.0.0
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
1.0.0
5 years ago