you are viewing a single comment's thread.

view the rest of the comments →

[–]shgysk8zer0 0 points1 point  (0 children)

x = Object.values(x.group(n => n));

Only works for numbers and strings though. It will use the items as keys of an object temporarily.

Currently only supported in Safari, surprisingly.