Created
May 31, 2015 16:28
-
-
Save epixa/282705eb84d8769dd511 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Something { | |
constructor() => this.calls = 0; | |
totalCalls() => ++this.calls; | |
} | |
let something = new Something(); | |
something.totalCalls(); // 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment