ori-data-pipeline/percentRound.js

9 lines
210 B
JavaScript

//a function to use percent-round in origami
import percentRound from './percent-round.js';
export default function (key) {
return function(value) {
return percentRound(value.map(v => v[key]), 3);
}
}