I'm trying to find or build an idiomatic, simple and elegant command pattern in JavaScript. All of the implementations I've found so far, are terrible. I'm not sure this is any better, but it's a start.
Example of the Command Design Pattern in JavaScript. Car Manager object is decoupled from the program by using an execute method, which accepts any process requests from the CarManager object where the contents of the request include model and carID.