nonnegative:验证值是否为非负数

时间:2021-06-23 03:57:41
【文件属性】:
文件名称:nonnegative:验证值是否为非负数
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-23 03:57:41
JavaScript 非负 验证值是否为非负数。 安装 $ npm install validate.io-nonnegative 要在浏览器中使用,请使用 。 用法 var isNonNegative = require ( 'validate.io-nonnegative' ) ; isNonNegative( 值 ) 验证如果value是一个非负number 。 var value = Math . PI ; var bool = isNonNegative ( value ) ; // returns true 例子 var isNonNegative = require ( 'validate.io-nonnegative' ) ; console . log ( isNonNegative ( Math . PI ) ) ; // returns true console . log
【文件预览】:
nonnegative-master
----.jshintrc(1KB)
----.gitattributes(12B)
----.jshintignore(118B)
----lib()
--------index.js(730B)
----.npmignore(498B)
----examples()
--------index.js(222B)
----TODO.md(12B)
----.travis.yml(73B)
----LICENSE(1KB)
----test()
--------test.js(1017B)
----README.md(3KB)
----Makefile(2KB)
----.editorconfig(169B)
----.gitignore(711B)
----package.json(1KB)

网友评论