When using ES2015, my goal is to enhance the Function
class and utilize its instance as a callable function.
class Foo extends Function {
// What is the best way to implement behavior here?
}
let foo = new Foo();
foo();
foo.call();
// The object is callable, but no specific behavior has been defined
How can I assign unique functionality to foo
when declaring it?