If I have a JavaScript class like this:
class Foo {
constructor() {}
}
I can instantiate it using:
const myFoo = new Foo();
But say I have a function that takes a class instantiation like myFoo
as a parameter. How can I access Foo
to modify it?