Conditionally Add To An Object Or Array In Javascript

Conditionally Add To An Object Or Array In Javascript