update object in array if id exists else append javascript
By Margie White at Jul 13 2020
inline if else javascript
By javabash at Jul 04 2020
if statemnt shorthand js without else
By Proud Platypus at May 24 2020
javascript if else
By Glen Lesch at Jun 26 2019