Jul 24, 2017 · 1 min read
getYs(){
const {data} = this.props;
return data.map(d => dy)
}getMinY() {
return Math.min(...this.getYs());
}getMaxY() {
return Math.max(...this.getYs());
}
Faster and more concise
getYs(){
const {data} = this.props;
return data.map(d => dy)
}getMinY() {
return Math.min(...this.getYs());
}getMaxY() {
return Math.max(...this.getYs());
}
Faster and more concise