O'Reilly logo
  • Jakim Hartford thinks this is interesting:

var scale = d3.scale.linear() .domain([-1, 0, 1]) .range([0, 50, 100]); console.log([[-0.5, 0.2, 0.8].map(scale));// [25, 60, 90]

From

Cover of Data Visualization with D3 and AngularJS

Note

There is a type