1.0.0 • Published 6 years ago

utils-is v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

is

前端项目常用的一些工具函数,和UI无关。基于ES6语法

Install

$ yarn add utils-is --save # 安装依赖

API

import {
    isObject,
    isString,
    isArray,
    isFunction,
    isDate,
    isNumber,
    isUndef,
    isBoolean,
    isRegExp,
    isEmptyObject
} from 'utils-is';

/**
 * 所有接口
 * @param value {any}
 * @return {Boolean}
 */

单元测试

$ npm install mocha -g
$ npm install
$ npm test