DEV Community

Discussion on: The shortest way to conditional insert properties into an object literal

Collapse
 
tkane2000 profile image
tkane2000

you could pass coins to a method that checks for false, null, and undefined only (or something along those lines)