且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Google Apps脚本中的数组支持哪些功能?

更新时间:2023-12-04 21:32:28

Logger.log(Object.getOwnPropertyNames(Array.prototype))给出以下内容,我认为这是正确的列表:

Logger.log(Object.getOwnPropertyNames(Array.prototype)) gives the following, which I think it is the correct list:

[constructor, toString, toLocaleString, toSource, join, reverse, sort, push, pop, shift, unshift, splice, concat, slice, indexOf, lastIndexOf, every, filter, forEach, map, some, reduce, reduceRight, length]