function exist(data, arr) {for (var i = 0; i < arr.length; i++) {if (data == arr[i]) {return true;} else {return flase;}}}var re = exist(1, [1, 43, 64, 7]);console.log(re);
function exist(data, arr) {for (var i = 0; i < arr.length; i++) {if (data == arr[i]) {return true;} else {return flase;}}}var re = exist(1, [1, 43, 64, 7]);console.log(re);