更新时间:2023-11-16 15:47:28
我看到您添加了一个 polyfill 来解决问题,但您的问题的答案是 NetSuite/SuiteScript 使用 ECMAScript 5.1;它的引擎是 Java Rhino(不确定是哪个版本).
I see you added a polyfill to solve the problem, but the answer to your question is that NetSuite/SuiteScript uses ECMAScript 5.1; its engine is Java Rhino (unsure which version).
find
是在 ES6 中加入的,而 reduce
是在 ES5.1 中加入的,所以 SuiteScript 不支持 find
而支持 减少代码>.
find
was added in ES6, while reduce
was added in ES5.1, so SuiteScript does not support find
while it does support reduce
.
来源: