title: Remap or Map function in Javascript
body: <p>Of late, most of my programming experience has been in <a href="http://www.processing.org" rel="noreferrer">Processing</a>, and more recently I have been wanting to branch out a little deeper in to some JavaScript, since they are slightly related. </p>
  
  <p>I was just wondering, as my recent searching has turned up nothing, if JavaScript had a similar function to Processing's "map" function, in which a value and it's range is taken and remapped to a new range?</p>
  
  <p>More info here: <a href="http://processing.org/reference/map_.html" rel="noreferrer">http://processing.org/reference/map_.html</a></p>
  
  <p>PS: Yes, I also know that www.processingjs.org exists, but I was just wondering if JS had such a function natively.</p>