Azi
08/07/2018, 3:19 PManyof
doesn't work.
function filterQueryBuilder(accountIds) {
return accountIds.map(function (accountId, i) {
return [["entityid", "is", accountId]].concat(i !== accountIds.length - 1 ? ["OR"] : [])
}).reduce(function (pre, cur) {
return pre = pre.concat(cur)
})
}