Skip to content

Commit

Permalink
fix(aggregations): update syntax in unique aggregation function (#2464)
Browse files Browse the repository at this point in the history
Update syntax in return line of unique aggregation function
Use Array.from() instead of the spread operator [...]
Motivation: prevent polyfilling to [].concat() to enable reference by string in column definitions

closes #2173

Co-authored-by: Thomas Marr <thomas.marr@arup.com>
  • Loading branch information
thomasmarr and thomasmarr committed Jun 18, 2020
1 parent f41b82d commit 30c4be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aggregations.js
Expand Up @@ -68,7 +68,7 @@ export function median(values) {
}

export function unique(values) {
return [...new Set(values).values()]
return Array.from(new Set(values).values())
}

export function uniqueCount(values) {
Expand Down

0 comments on commit 30c4be6

Please sign in to comment.