Is it possible to generate an array with the Compose function based on a Sharepoint list, but only distinct values? I want the following code to run:
MyArray[item];
for each (item in MyArray){
if (MyArray.contains(item)){ // note1
do nothing;
else
(MyArray.push(item))
}
}I am getting hung up recreating the line note1 is on. I can't seem to use the contains condition on an array I am working on
I am using the compose feature to make the array which I think has to do with it...thanks for any help