3 ms·Why? if you really want to write shorter code, try const foo = {}; foo.bar = bar ||undefined;by rk06 9y agoWhy? if you really want to write shorter code, try const foo = {}; foo.bar = bar ||undefined;