有沒有辦法簡化有條件地使用node.js向對象添加值? [英]Is there a way to simplify conditionally adding values to an object with node.js?