tf-type

1.0.3 • Public • Published

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);

Readme

Keywords

none

Package Sidebar

Install

npm i tf-type

Weekly Downloads

4

Version

1.0.3

License

ISC

Unpacked Size

7.89 kB

Total Files

6

Last publish

Collaborators

  • tffed