How to determine whether an array contains another array

determine whether array a contains array b

let a = [2,3,4,5,6,7,8,9,10]
let b = [2,3]
let c = [1]
ab,ac

from the Internet to find several methods are converted to string search, so 10 contains 1 will prompt to include, obviously not the result I want, how to write this?

Feb.14,2022

let a = [2, 3, 4, 5, 6, 7, 8, 9, 10];
let b = [2, 3];
let c = [1];

function includes(arr1: any[], arr2: any[]) {
  return arr2.every(val => arr1.includes(val));
}

console.log(includes(a, b));
console.log(includes(a, c));


`

let a = [1,2,3,4,5,6];
let b = [1,2,3,4,5,6,7];

/**
 * ab
 * 
 *      1.baab,ab
 *      2.aa_length
 *      3.abc,cc_length,c_length == a_length ,ab
 * @param {Array} a //a
 * @param {Array} b //b
 */
function isPart (a, b) {
if(b.length < a.length || a.length > b.length) {
    return false;
} else {
    let c = b.filter(item => a.includes(item));

    if(a.length == c.length) {
        console.log('true');
    } else {
        console.log('false');
    }
}
}
isPart(a,b);

`

Menu