How do I determine whether an array contains a particular value in string or consist the whole array of string ?
For example
const list = ['appple','orange','burger','pizza']
by includes, I can check if particular value exist in list
But how can I check with a list of string
like
const listToCheck = ['appple','orange']
list.includes(listToCheck) <= gives me true
const listToCheck = ['appple','orange','pineapple']
list.includes(listToCheck) <= gives me true