JSFiddle - React, Tailwind, and code Playground
JavaScript
a = [1,2,3,4,5];
b = [1,3,5];
var is = b.length == $.grep(b, function(el) {return $.inArray(el, a)!=-1}).length;
console.log(is)
a = [1,2,3,4,5];
b = [1,3,5];
var is = b.length == $.grep(b, function(el) {return $.inArray(el, a)!=-1}).length;
console.log(is)