jQuery
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>serializeArray_01_jq</title>
<script src="jquery-3.6.0.min.js"></script>
<script>
$(function () {
var myarray = [1,2,3,4,5];
var res1 = myarray.includes(3);
var res2 = myarray.includes(7);
console.log(res1)
console.log(res2)
});
</script>
出力結果
true
false