title: Is there a map function in vanilla javascript like p5.js?
body: <p>In p5.js, theres a function called map() which maps a value in a certain range to another value in another range. Is there a similar method like this in vanilla javascript?</p>