Skip to content

Property 'intersection' does not exist on type 'Set<number>'() #17749

@acostaf

Description

@acostaf

Describe the bug

Hi Team, I cannot get my project work with Set.prototype.intersection()

Reproduction

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/intersection

Steps to reproduce

onst odds = new Set([1, 3, 5, 7, 9]);
const squares = new Set([1, 4, 9]);
console.log(odds.intersection(squares));

System Info

Vite 5.3.4

Used Package Manager

npm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions