调整编排数组处理,补充基本功能,去除不常用功能

This commit is contained in:
fofolee
2025-02-25 20:47:33 +08:00
parent b9005cbe88
commit 15ab522738
3 changed files with 227 additions and 365 deletions

View File

@@ -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));