Determine if the JS environment has template literal support.
Newton Interpolation
This package offers the function interpolateValues. The function takes a set of points (seperated in x and y values) and calculates a polynomial function, which intersects all of the given points.