Homepage
Open in app
Sign in
Get started
Tagged in
Objects
Geekabyte
Geekabyte is all about learning technologies together
More information
Followers
128
Elsewhere
More, on Medium
Objects
Arwa Lokhandwala
in
Geekabyte
Apr 11, 2018
Day #10 Pro Tip #Javascript
Conditionally set an object property using the spread operator !!
Let’s consider this example:
var object = {
"name": "Arwa",
"city": "Mumbai"
}
Read more…
72