Skip to content

Instantly share code, notes, and snippets.

@adoji92

adoji92/1.js

Created Feb 14, 2018
Embed
What would you like to do?
adsf
class MyClass {
_someFunction() {
// ...
}
anotherFunction() {
this._someFunction(); // OK
}
}
const my = new MyClass();
my._someFunction(); // eslint error
function someFunction() {
// ...
}
class MyClass {
constructor(option) {
someFunction.call(this, option);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment