该库提供了一系列判断函数,包括类型判断和是否严格相等判断等。
import * as Is from '@careteen/is'
Is.isUndefined(undefined) // true
NPM
npm i -D @careteen/is
import * as Is from '@careteen/is'
Is.isUndefined(undefined) // true
// or
import {
isUndefined
} from '@careteen/is'
isUndefined(undefined) // true
or CDN
<script src='https://unpkg.com/@careteen/is/dist/index.js'></script>
<script>
var Is = window['@careteen/is']
Is.isUndefined(undefined) // true
</script>
更详细使用请查看API
None
clone仓库并引入依赖
git clone git@github.com:careteenL/is.git
npm install
开始开发:)
...
编写详细使用文档介绍功能,可在本地查看http://127.0.0.1:8880
npm run doc
请编写单元测试覆盖所加功能
npm run test
启动本地服务器编写示例
npm run example
修改package.json README.md CHANGELOG.md
版本号,再发布
npm run release