Advertisement
Guest User

Untitled

a guest
Apr 16th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. if(locations!=null && locations.length>0) {
  2. locations = locations.reduce(function(a,b){
  3. if(a.indexOf(b)<0) {
  4. if(b!=null) {
  5. a.push(b);
  6. }
  7. }
  8. return a;
  9. },[]
  10. );
  11. if(locations!=null && locations.length>0) {
  12. fe.push("AND",["custcol_tc_trans_po_store","anyof",[].concat(locations)]);
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement