Arrays – the method every does not work in javascript

I have checkin (the, ar) function to check if the in Arkansas I like this:

checkIn (el) {function
var che = false;
for (i = 0; i <ar.length; i ++) {
yes (=== ar[i]) {
check = true;
return check

it works normaly Then I want to use the .every method to verify if each element of a given matrix is ​​in another given matrix

var x = [1,2,3];
var y = [1,2,3,4,5];
var check = x.every (checkIn (y))

check Does it need to be true, but it does not work?