mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 10:38:26 +00:00
chore(util) rm " "
This commit is contained in:
parent
9c0991e450
commit
7d5a0cf559
1 changed files with 10 additions and 10 deletions
20
lib/util.js
20
lib/util.js
|
|
@ -278,13 +278,13 @@
|
|||
*
|
||||
* @obj
|
||||
*/
|
||||
this.extendProto = function(obj) {
|
||||
this.extendProto = function(obj) {
|
||||
var ret, F = function() {};
|
||||
F.prototype = Util.extend({}, obj);
|
||||
ret = new F();
|
||||
|
||||
return ret;
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* @param pJSON
|
||||
|
|
@ -366,15 +366,15 @@
|
|||
if (isStr)
|
||||
switch (type) {
|
||||
case 'array':
|
||||
n = str2.length;
|
||||
n = str2.length;
|
||||
|
||||
for (i = 0; i < n; i++) {
|
||||
str = str2[i];
|
||||
is = Util.isContainStr(str1, str);
|
||||
for (i = 0; i < n; i++) {
|
||||
str = str2[i];
|
||||
is = Util.isContainStr(str1, str);
|
||||
|
||||
if (is)
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 'string':
|
||||
|
|
@ -532,7 +532,7 @@
|
|||
str = str.replace(regExp, to);
|
||||
}
|
||||
|
||||
return str;
|
||||
return str;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -681,7 +681,7 @@
|
|||
* functions check is variable is string
|
||||
* @param variable
|
||||
*/
|
||||
this.isString = function(variable) {
|
||||
this.isString = function(variable) {
|
||||
return Util.isType(variable, 'string');
|
||||
};
|
||||
|
||||
|
|
@ -689,7 +689,7 @@
|
|||
* functions check is variable is string
|
||||
* @param variable
|
||||
*/
|
||||
this.isUndefined = function(variable) {
|
||||
this.isUndefined = function(variable) {
|
||||
return Util.isType(variable, 'undefined');
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue