getify / Functional-Light-JS

Pragmatic, balanced FP in JavaScript. @FLJSBook on twitter.
http://FLJSBook.com
Other
16.6k stars 1.95k forks source link

`record` should be `customerRecord` or `customer`? #104

Closed blueken closed 7 years ago

blueken commented 7 years ago

ch10, Line 71.

last sentence

In fact, the same concern could apply to `record` being present before `onCustomer(..)` is specified to receive it.

'record' refers to the parameters in function onCustomer(customer), so will it be better to use word 'customer'?

customerPromise.then( function onCustomer(customer){
    ordersPromise.then( function onOrders(orders){
        customer.orders = orders;
    } );
} );