check if an array contains all elements in another array in ReactJS