Created
May 17, 2016 16:59
-
-
Save griffinmichl/55729a901af3bdba1aed1a818e63e4c8 to your computer and use it in GitHub Desktop.
This file contains 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
function sayHello() { | |
console.log('My name is', this.name) | |
} | |
const amy = { | |
name: 'amy', | |
speak: debounce(sayHello), | |
} | |
amy.speak() | |
// 'My name is undefined' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment