Skip to content

Instantly share code, notes, and snippets.

@kevinfiol
Created February 12, 2019 18:53
Show Gist options
  • Save kevinfiol/06b452316ef0cac26d02271537d59f65 to your computer and use it in GitHub Desktop.
Save kevinfiol/06b452316ef0cac26d02271537d59f65 to your computer and use it in GitHub Desktop.
const a = {
foo: 2
};
function say() {
console.log(this.foo);
}
const dontSay = () => console.log(this.foo);
a.say = dontSay;
a.say();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment