I am trying to check if a specific item (value of a property) exists in a array of objects, but could not find out any solution. Please let me know, what i am missing here.<
This works fine with me:
if(contains(objarray){ x in x.id == 1}) { println("1 exists in the array") }