没有合适的资源?快使用搜索试试~ 我知道了~
the-type-validator:节点和浏览器的类型验证模块
共24个文件
js:16个
json:2个
md:1个
需积分: 9 0 下载量 104 浏览量
2021-05-07
05:49:16
上传
评论
收藏 17KB ZIP 举报
温馨提示
类型验证器 为什么 ? 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.zip (24个子文件)
the-type-validator-master
.gitignore 2KB
.babelrc 39B
.eslintrc 1KB
package.json 2KB
jsconfig.json 207B
src
main.js 793B
type
object.spec.js 618B
promise.spec.js 215B
helper.spec.js 386B
promise.js 395B
primitive.js 1KB
array.js 633B
number.js 1KB
helper.js 697B
array.spec.js 405B
object.js 1KB
number.spec.js 578B
primitive.spec.js 777B
webpack.config.js 1KB
jest.config.js 529B
dist
main.js 2KB
.eslintignore 17B
readme.md 12KB
icon.png 3KB
共 24 条
- 1
资源评论
Untournant
- 粉丝: 50
- 资源: 4587
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功