edited curry message
This commit is contained in:
parent
43387d611d
commit
414988c518
1 changed files with 7 additions and 8 deletions
13
curry.js
13
curry.js
|
@ -1,11 +1,10 @@
|
|||
let dog =
|
||||
name =>
|
||||
size =>
|
||||
breed =>
|
||||
name + ' is a ' +
|
||||
size + ' dog of the ' +
|
||||
breed + ' breed!'
|
||||
|
||||
let dog = (name, size, breed) =>
|
||||
name + ' is a ' +
|
||||
size + ' dog. He is a ' +
|
||||
breed + '!'
|
||||
|
||||
dog = _.curry(dog)
|
||||
|
||||
let Kaidou = dog('Kaidou')
|
||||
let fourteenlbKaidou = Kaidou('14lb')
|
||||
|
|
Loading…
Reference in a new issue