function wrap(fieldName, promise, args) {
  return promise(args).then((result) => ({
    [fieldName]: result,
  }));
}
function wrap(fieldName, promise, args) {
  return promise(args).then((result) => ({
    [fieldName]: result,
  }));
}
function wrap ( fieldName , promise , args ) { return promise ( args ) . then ( ( result ) => ( { [ fieldName ] : result , } ) ) ; }
Modifies the result of each promise from a scalar value to a object containing its fieldname
Modifies the result of each promise from a scalar value to a object containing its fieldname
Wrap a promise with an object