I have found some solutions on this site and others such as Array.prototype.includes() and Array.prototype.indexOf() and jQuery.inArray().
Each of these solutions are well suited to check if a single value 'x'
is in array ['x','y','z']
.
My question is: How can I test to see if multiple values are present in an array. In other words, is array X in array Y?
For example:
Is ['a','e','f']
in ['a','b','c','d','e','f','g']
? Result: True.
Is ['a','e','z']
in ['a','b','c','d','e','f','g']
? Result: False.
EDIT: Ideally the solution would work as far back as IE 10.