the-type-validator:节点和浏览器的类型验证模块

时间:2021-05-07 05:49:16
【文件属性】:
文件名称:the-type-validator:节点和浏览器的类型验证模块
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-07 05:49:16
javascript validation types JavaScript 类型验证器 为什么 ? Javascript并没有很好的方法来证明某些东西属于特定类型。 (打字稿除外) 例1。 检查类型 typeof null "object" typeof undefined "undefined" typeof "undefined" "string" typeof Object "function" typeof object "undefined" typeof { } "object" typeof true "boolean" typeof ( 1 < 2 ) "boolean" typeof 1 "number" typeof 0 "number" 例2。 布尔比较| 膨胀| 结果| -| -| | true == 0 | 错误| | true == 1 | 真实| | true == 2 | 错误| | true ==(1 <2)| 真实| |
【文件预览】:
the-type-validator-master
----.gitignore(2KB)
----.babelrc(39B)
----.eslintrc(1KB)
----package.json(2KB)
----jsconfig.json(207B)
----src()
--------main.js(793B)
--------type()
----webpack.config.js(1KB)
----jest.config.js(529B)
----dist()
--------main.js(2KB)
----.eslintignore(17B)
----readme.md(12KB)
----icon.png(3KB)

网友评论