Creating functions using the Function constructor can be avoided when all arguments are strings.
JS runtimes find it easier to optimize functions that are written in plain JavaScript syntax.
Consider using arrow functions, or the function keyword instead.
const add = new Function('a', 'b', 'return a + b')
const sub = Function('a', 'b', 'return a - b')
const add = function (a, b) { return a + b }
const sub = function (a, b) { return a - b }