I only want to define an empty object dct[dpid]
if does not already contain data.
This seems a bit clunky, is there a better way to write it?
dct = {}; //global scope
Later in a function with dpid
defined as a string
dct[dpid] = typeof(dct[dpid])=="undefined" ? {} : dct[dpid];