javascript q
javascript q
- Started
- Last post
- 1 Response
- myobie
how do i test if an object exists
i know i can if (object) {} but that throws a javascript error when the object is not present
i need something like the php empty() function
- myobie0
never mind, i figured it out
mycollapse = (typeof mycollapse != 'undefined') ? mycollapse : { };
that creates a blank object if it doesn't already exist