command-builder
Simple contrived example
const commandBuilder = ; { return x + y;} { return x - y;} { return x * y;} { return x / y;} const commands = add subtract multiply divide; // commandBuilder takes an object of functions as an argument const calculator = ; // Then it returns a function that takes a string of// the function key followed by the arguments used for the function const multiResult = ;const addResult = ;