按相等值将数组分组JavaScript