Here's the code in question:
.map(function(album){ return {artist : album("vendor")("name")} })
.map({artist : ['album','vendor','name']})
Here's the code in question:
If this is simply adding a node to an AST, it could be expressed without a function: Using a function for this would be quite superfluous.