Travis build: 1387

This commit is contained in:
30secondsofcode
2018-01-24 12:16:45 +00:00
parent e501e7170c
commit 6353f9b51a
3 changed files with 46 additions and 4 deletions

View File

@ -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!'
```