【文件属性】:
文件名称:lowercase:验证值是否为小写字符串
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-23 16:46:39
JavaScript
小写
验证值是否为小写字符串。
安装
$ npm install validate.io-lowercase
要在浏览器中使用,请使用 。
用法
var isLowercase = require ( 'validate.io-lowercase' ) ;
isLowercase( 值 )
验证value是否为小写string 。
var value = 'beep' ;
var bool = isLowercase ( value ) ;
// returns true
注意:此方法首先验证value是否为string 。 对于所有其他类型,该方法返回false 。
例子
console . log ( isLowercase ( 'hello' ) ) ;
// returns true
console . log ( isLowercase ( 'Hello' ) )
【文件预览】:
lowercase-master
----.jshintrc(1KB)
----.gitattributes(12B)
----.jshintignore(118B)
----lib()
--------index.js(778B)
----.npmignore(498B)
----examples()
--------index.js(168B)
----TODO.md(12B)
----.travis.yml(73B)
----LICENSE(1KB)
----test()
--------test.js(844B)
----README.md(3KB)
----Makefile(2KB)
----.editorconfig(169B)
----.gitignore(711B)
----package.json(1KB)