//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); } }