Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js conditional key

const object = {
  ...bool && { foo: 2 },
}
 
PREVIOUS NEXT
Tagged: #js #conditional #key
ADD COMMENT
Topic
Name
3+5 =