Array Compare issue

i have two array like array[A] and array[B] i want compare both array element are same or not and which element is not present in array

Example
arrA=['hello','hii','ok']
arrB=['hello','hii']
if we are compare this both array than in arrB 'ok' element not inside of arrB
any solution for this???
Other
4 replies