Travis build: 1387
This commit is contained in:
@ -16,7 +16,7 @@ const bind = (fn, context, ...args) =>
|
||||
function greet(greeting, punctuation) {
|
||||
return greeting + ' ' + this.user + punctuation;
|
||||
}
|
||||
const freddy = { 'user': 'fred' };
|
||||
const freddy = { user: 'fred' };
|
||||
const freddyBound = bind(greet, freddy);
|
||||
console.log(freddyBound('hi','!')); // 'hi fred!'
|
||||
console.log(freddyBound('hi', '!')); // 'hi fred!'
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user