Hi! Sorry, I don't sure that it is a place for feature request - pls, write if I wrong.
My proposal is to allow return of part of object fields.
 
Yesterday I wrote some ugly code:
const { id, displayName, type, isEnabled } = segment;
  return { id, displayName, type, isEnabled };
 
There is problem with duplication. I think next variant looks much better:
 
return { id, displayName, type, isEnabled } = segment;
 
 
Thank you and sorry if this email is incorrect for proposals.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to