Skip to content

Weird output with JS Set #672

@toocomputer

Description

@toocomputer

Chrome Dev Tools:

let a = [ 10, 20, 20, 30, 40, 50, 50 ];
undefined

let s = new Set(a)
undefined

s
Set(5) {10, 20, 30, 40, 50}

[...s]
(5) [10, 20, 30, 40, 50]

RunJS (using the same code as above):

[...s]

[ '
', '
', '
', '[', '.', '.', '.', 's', ']', ';' ]

{
"version": "3.0.3",
"platform": "darwin",
"arch": "arm64",
"activated": true,
"logs": []
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions