Closed StephanHoyer closed 8 years ago
is
var fullName = fn.curryRight(function ( firstName, middleName, lastName ) { return firstName + ' ' middleName + ' ' + lastName; }); var smithName = fullName( 'Smith' ); smithName( 'Damon' )( 'Bill' ); // "Bill Damon Smith" smithName( 'Jefferson', 'Bill' ); // "Bill Jefferson Clinton" fullName( 'Cochran', 'Anne', 'Jenn' ); // "Jenn Anne Cochran" fullName( 'Cochran', 'Anne' )( 'Jenn' ); // "Jenn Anne Cochran"
should be (second result)
var fullName = fn.curryRight(function ( firstName, middleName, lastName ) { return firstName + ' ' middleName + ' ' + lastName; }); var smithName = fullName( 'Smith' ); smithName( 'Damon' )( 'Bill' ); // "Bill Damon Smith" smithName( 'Jefferson', 'Bill' ); // "Bill Jefferson Smith" fullName( 'Cochran', 'Anne', 'Jenn' ); // "Jenn Anne Cochran" fullName( 'Cochran', 'Anne' )( 'Jenn' ); // "Jenn Anne Cochran"
Ah good catch, took me a minute to figure out what the problem was. The name "Clinton" should say "Smith".
is
should be (second result)