|
|
|
|
|
by elliottkember
457 days ago
|
|
Good example actually. You started with a books array, and changed the type to authors half-way through. To know the return type of the chain, I have to read through it and get to the end of each line. A longBooks array, and map(longBooks, ‘author’) wouldn’t be much longer, but would involve more distinct and meaningful phrases. I used to love doing chains! I used lodash all the time for things like this. It’s fun to write code this way. But now I see that it’s just a one-liner with line breaks. |
|