Check out example codes for "checking if a list contains a value unity". It will help you in understanding the concepts better.

Code Example 1

if(list.Contains(item)){
	//It does
}else{
	//It not does
}

Learn ReactJs, React Native from akashmittal.com