mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 08:54:10 +00:00
feature(util) add getStrSmallfirst
This commit is contained in:
parent
6d411861ae
commit
7e6c109ab6
1 changed files with 12 additions and 0 deletions
12
lib/util.js
12
lib/util.js
|
|
@ -381,6 +381,18 @@
|
|||
return lRet;
|
||||
};
|
||||
|
||||
this.getStrSmallFirst = function(pStr) {
|
||||
var lRet;
|
||||
|
||||
if (Util.isString(pStr) && pStr.length > 0)
|
||||
lRet = pStr[0].toLowerCase() +
|
||||
pStr.substring(1);
|
||||
else
|
||||
lRet = pStr;
|
||||
|
||||
return lRet;
|
||||
};
|
||||
|
||||
/**
|
||||
* function returns is pStr1 contains pStr2
|
||||
* @param pStr1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue