The has() method of a Set returns a boolean indicating whether the element is in the set or not.

    
    const numbers = new Set([1, 2, 3, 4, 5]);

    console.log(numbers.has(3));
    // true