frontend developer @6wunderkinder
You should always use the simplest possible abstraction to solve the problem you’re working on. Start with a pure function. If you need an object with persistent state, try a factory function. If you need to build more complex objects, try functional mixins.
To make that work, all we need to do is implement .valueOf() -- which also seems like a convenient way to unwrap the value from the functor: