我想用服务器端Javascript来过滤XPage中的数组。不幸的是我得到以下错误:在服务器端JavaScript中使用Array.filter函数
Error calling method 'filter(Function)' on an object of type 'Array [JavaScript Object]'
我有一个字符串像["elem1","elem2","elem3"]
数组我这样调用该函数:
list.filter(function(){
});
是否有任何理由为什么这个错误发生?这个函数是否存在于ssjs中?
这个问题并不重复,因为Xpages/Lotus Notes在后台运行Rhino并不清楚。
https://gist.github.com/katio/08bf3f5e058b950cd957 – mplungjan