没有合适的资源?快使用搜索试试~ 我知道了~
if-const:javascript条件词中的新词!
共27个文件
md:7个
map:4个
js:4个
需积分: 9 0 下载量 106 浏览量
2021-02-14
10:16:09
上传
评论
收藏 109KB ZIP 举报
温馨提示
如果常量 根据值的正确性执行代码块,同时还使该值可用于该块 安装 使用安装: $ npm install --save if-const 或您喜欢的任何其他方式。 用法 工作与正常的任何类型的条件if作品有。 允许在代码块中使用条件的结果(类似于C# out var语法)。 import ifConst from 'if-const' ; // a little function to simulate uncertanty of the result // it returns either null or an object const nullOrObj = ( ) => Math . random ( ) > 0.5 ? null : { foo : 'bar' } ; const defaultObj = { foo : 'foo' } ; const obj = ifC
资源推荐
资源详情
资源评论
收起资源包目录
if-const-main.zip (27个子文件)
if-const-main
.gitignore 44B
tsconfig.json 828B
README.md 3KB
.github
PULL_REQUEST_TEMPLATE.md 2KB
CONTRIBUTING.md 1KB
CODE_OF_CONDUCT.md 3KB
ISSUE_TEMPLATE
bug_report.md 696B
feature_request.md 606B
question-support-request.md 318B
tests
ifConst.spec.ts 1KB
LICENSE 1KB
bili.config.ts 248B
package.json 6KB
dist
es
index.js.map 548B
index.js 336B
umd.js 629B
js
index.js.map 566B
index.js 500B
esnext
index.js.map 556B
index.js 287B
umd.js.map 1KB
.coveralls.yml 25B
logo-g.svg 9KB
src
index.ts 966B
.travis.yml 166B
.editorconfig 147B
package-lock.json 371KB
共 27 条
- 1
资源评论
雪地女王
- 粉丝: 96
- 资源: 4601
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功