Skip to content

Instantly share code, notes, and snippets.

@bakkot
Last active April 4, 2017 06:47
Show Gist options
  • Save bakkot/66b515f402b8cdbf3e405f8509ad3525 to your computer and use it in GitHub Desktop.
Save bakkot/66b515f402b8cdbf3e405f8509ad3525 to your computer and use it in GitHub Desktop.
class A {
constructor(f) {
f && f();
}
}
class B extends A {
constructor() {
const f = () => super();
super(f);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment