优化代码

This commit is contained in:
RuoYi
2023-11-30 09:37:36 +08:00
parent 42bb8f6445
commit 966a17123f
10 changed files with 76 additions and 84 deletions

View File

@ -65,10 +65,7 @@ export function validEmail(email) {
* @returns {Boolean}
*/
export function isString(str) {
if (typeof str === 'string' || str instanceof String) {
return true
}
return false
return typeof str === 'string' || str instanceof String;
}
/**