ceiocs:该库允许开发人员使用条件“表达式”而不是条件“语句”

时间:2021-03-27 20:32:19
【文件属性】:
文件名称:ceiocs:该库允许开发人员使用条件“表达式”而不是条件“语句”
文件大小:92KB
文件格式:ZIP
更新时间:2021-03-27 20:32:19
TypeScript 塞奥奇 关于 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
----.eslintrc.json(530B)
----.huskyrc.js(72B)
----rollup.config.js(1KB)
----.github()
--------workflows()
----prettier.config.js (114B)
----commitlint.config.js(69B)
----yarn.lock(189KB)
----.prettierignore(35B)
----packages()
--------match()
--------common()
--------branch()
--------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)

网友评论