Skip to content

第 11 题:将数组扁平化并去除其中重复数据,最终得到一个升序且不重复的数组 #8

@zpzxgcr

Description

@zpzxgcr

Array.from(new Set(arr.flat(Infinity))).sort((a,b)=>{ return a-b})

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions