I have an 2 array with some String values. I wanted to check if one array's all value are part of another arrays. Is there any defined method available to check it or how to implement in optimised way.
Ex:
arr1['abc', 'def']
arr2['abc', 'def', 'ghi', 'jkl']
if values of array 1 is present in array 2 then only control should move ahead in code else it should return.
Aucun commentaire:
Enregistrer un commentaire