conditional property

node v15.3.0
version: 2.0.0
endpointsharetweet
const b = 'bar'; const c = undefined; const x = { a: 'foo', ...(b && { b }), ...(c && { c }), };
Loading…

no comments

    sign in to comment