没有合适的资源?快使用搜索试试~ 我知道了~
ceiocs:该库允许开发人员使用条件“表达式”而不是条件“语句”
共34个文件
ts:15个
js:4个
json:4个
需积分: 9 0 下载量 193 浏览量
2021-03-27
20:32:19
上传
评论
收藏 92KB ZIP 举报
温馨提示
塞奥奇 关于 ceiocs是允许开发人员使用条件“表达式”而不是条件“语句”的库。 ceiocs表示Conditional Expression Instead Of Conditional Statements 。 用法 介绍 使用ceiocs ,应按以下步骤导入。 import { branch , match } from "ceiocs" ; 您可以将布尔值用作条件,并将任何值用作值。 import { branch , match } from "ceiocs" ; // like if-statement branch . if ( false , "a" ) . elseif ( false , "b" ) . else ( "c" ) ; // => "c" // like switch-statement match . case ( 123 )
资源推荐
资源详情
资源评论
收起资源包目录
ceiocs-master.zip (34个子文件)
ceiocs-master
.eslintrc.json 530B
.huskyrc.js 72B
rollup.config.js 1KB
.github
workflows
node.js.yml 1KB
release.yml 435B
prettier.config.js 114B
commitlint.config.js 69B
yarn.lock 189KB
.prettierignore 35B
packages
match
src
index.ts 77B
core
config.ts 317B
when.ts 3KB
match.ts 767B
type.ts 195B
spec
match.spec.ts 6KB
common
src
resolve-maybe-callable.ts 266B
value-type.ts 161B
spec
resolve-maybe-callable.spec.ts 387B
branch
src
index.ts 98B
core
branch-head.ts 594B
branch-body.ts 2KB
branch-state.ts 395B
spec
index.spec.ts 8KB
index.ts 88B
.npmignore 39B
.travis.yml 369B
tsconfig.json 417B
LICENSE 1KB
jest.config.js 401B
README.md 3KB
renovate.json 79B
.gitignore 1KB
.eslintignore 35B
package.json 2KB
共 34 条
- 1
资源评论
可吸不是泥
- 粉丝: 24
- 资源: 4552
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功