Skip to content

-- #1224

@499190982

Description

@499190982

`
function merge(arr) {
let obj = {};
arr.toString()
.split(",")
.forEach((num) => {
if (obj[num]) {
obj[num].push(num);
} else {
obj[num] = [num];
}
});
return Object.values(obj).toString().split(",");
}

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions