Skip to content

Сreating an array of unique values in JavaScript using Sets with empty arrays in the array #118

Description

@Paul-Lazunko

const a = [...new Set([ [ ], [ ] ]) ]
// a = [ [ ], [ ] ];

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestions from readers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions