tf-type
v1.0.3
Published
JS类型判断
Downloads
2
Readme
JS 类型判断
// 引入
import {
isType,
isObject,
isString,
isArray,
isFunction,
isNumber,
isRegExp,
isDate,
isElement,
isBoolean
} from "tf-type";
// 或
import * as Type from "tf-type";
// let isObject = Type.isObject;
// 使用
isObject({ a: "aaa" });
isArray([1, 2, 3]);
isBoolean(true);