编排添加对象处理

This commit is contained in:
fofolee
2025-02-25 21:11:19 +08:00
parent 15ab522738
commit 4cd05732a9
4 changed files with 725 additions and 324 deletions

View File

@@ -160,6 +160,12 @@ const array = {
array[index] = value;
return array;
},
// 获取数组长度
length: function (array) {
if (!Array.isArray(array)) return 0;
return array.length;
},
};
module.exports = array;