I want to make a function returning a function.

```js
const f = (value) => {
  return (input) => (value <= input);
};

```

expected: 

```js
f(3).toString();
// "(input) => (3 <= input);"

eval(f(3).toString())(4);
// true

```

actual:

```js
f(3).toString();
// "(input) => (value <= input);"

eval(f(3).toString())(4);
// Error: input is undefined

```

Can I generate a function with pre-assigned dynamic constants?

---

I am making a kind of code generator. I try to convert the function to string and save to 'some.js'. My goal is that the users of 'some.js' don't have to know about arguments of `f`, when they use it.