greater-than:验证值是否大于比较器值

时间:2021-06-23 16:44:55
【文件属性】:
文件名称:greater-than:验证值是否大于比较器值
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-23 16:44:55
JavaScript 比...更棒 验证值是否大于比较器值。 安装 $ npm install validate.io-greater-than 要在浏览器中使用,请使用 。 用法 var isGreaterThan = require ( 'validate.io-greater-than' ) ; isGreaterThan( 值,比较器) 验证value是否大于comparator值。 var a = 10 , b = 0 ; var bool = isGreaterThan ( a , b ) ; // returns true 注意:此方法在进行比较之前验证两个值都是numeric 。 对于非数字值,该方法返回false 。 例子 console . log ( isGreaterThan ( 2 , 1 ) ) ; // returns true console . log ( i
【文件预览】:
greater-than-master
----.gitignore(711B)
----README.md(3KB)
----test()
--------test.js(858B)
----examples()
--------index.js(168B)
----LICENSE(1KB)
----.gitattributes(12B)
----.jshintrc(1KB)
----package.json(1KB)
----.jshintignore(118B)
----TODO.md(12B)
----.npmignore(498B)
----.travis.yml(73B)
----.editorconfig(169B)
----Makefile(2KB)
----lib()
--------index.js(920B)

网友评论