var str1 = arr[0] var str2 = arr[1] for(x of str2.toLowerCase().split``){ if(!str1.includes(x)){ return false; } } return true;