schizanon,
@schizanon@mas.to avatar

I'm sure there's some technical reason it can't be done, but I really want to be able to wrap destructured variables with functions.

instead of:

const { prop, otherProp } = object;  
const propAsNumber = parseInt(prop);  

I want to do:

const { parseInt(prop), otherProp } = object;  

  • All
  • Subscribed
  • Moderated
  • Favorites
  • javascript
  • khanakhh
  • magazineikmin
  • osvaldo12
  • GTA5RPClips
  • mdbf
  • Youngstown
  • tacticalgear
  • slotface
  • rosin
  • kavyap
  • ethstaker
  • everett
  • thenastyranch
  • DreamBathrooms
  • megavids
  • InstantRegret
  • cubers
  • normalnudes
  • Leos
  • ngwrru68w68
  • cisconetworking
  • modclub
  • Durango
  • provamag3
  • anitta
  • tester
  • JUstTest
  • lostlight
  • All magazines