Skip to content

Commit

Permalink
replace Object.values conform with ES6 (ES2015) (visgl#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
heshan0131 authored and ibgreen committed Mar 9, 2017
1 parent d5a5a60 commit d063924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/layer-browser/src/utils/grid-aggregator.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function pointsToWorldGrid(points, worldUnitSize) {
return accu;
}, {});

const maxHeight = Math.max.apply(null, Object.values(gridHash));
const maxHeight = Math.max.apply(null, Object.keys(gridHash).map(k => gridHash[k]));

const data = Object.keys(gridHash).reduce((accu, key) => {
const idxs = key.split('-');
Expand Down

0 comments on commit d063924

Please sign in to comment.