mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-15 07:05:21 +08:00
调整编排数组处理,补充基本功能,去除不常用功能
This commit is contained in:
@@ -93,11 +93,6 @@ const string = {
|
||||
return text.split(separator);
|
||||
},
|
||||
|
||||
// 数组合并
|
||||
join: function (array, separator = ",") {
|
||||
return Array.isArray(array) ? array.join(separator) : String(array);
|
||||
},
|
||||
|
||||
// 字符串重复
|
||||
repeat: function (text, count = 1) {
|
||||
return text.repeat(Math.max(0, count));
|
||||
|
||||
Reference in New Issue
Block a user