Recover methods from saved Javascript obect
Advertisements If I have a class declaration in Javascript with a simple method as so: class Foo { constructor(a, b) { this.a = a; this.b = b; } sum() { return this.a + this.b; } } I can then create an object and call its sum() method. var bar = new Foo(2, 5); // {"a":… Read More Recover methods from saved Javascript obect