没有合适的资源?快使用搜索试试~ 我知道了~
guard-function:你不可以过去!
共14个文件
js:3个
es6:2个
license:1个
需积分: 8 0 下载量 12 浏览量
2021-05-02
17:19:30
上传
评论
收藏 69KB ZIP 举报
温馨提示
保护功能 使用谓词保护功能。 安装 npm install guard-function 用法 基本用法 var guard = require ( 'guard-function' ) ; let capitalize = ( str ) => str . charAt ( 0 ) . toUpperCase ( ) + str . slice ( 1 ) ; // Silently fail when non-string is passed in capitalize = guard ( ( str ) => typeof str === 'string' , capitalize ) ; capitalize ( 12 ) ; // => undefined capitalize ( "you shall not pass!" ) ; // => "You shall not
资源推荐
资源详情
资源评论
收起资源包目录
guard-function-master.zip (14个子文件)
guard-function-master
.jshintrc 601B
you-shall-not-pass.jpg 63KB
test.js 2KB
.npmignore 23B
test.es6 2KB
.travis.yml 38B
gulpfile.js 550B
LICENSE 1KB
index.es6 277B
README.md 972B
.editorconfig 253B
.gitignore 97B
index.js 420B
package.json 1KB
共 14 条
- 1
资源评论
600Dreams
- 粉丝: 17
- 资源: 4629
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功