function get(obj, subkey) {
  if (!subkey)
    subkey = '#';

  if (Array.isArray(obj))
    obj = obj[0];

  if (obj && obj[subkey])
    return obj[subkey];
  else
    return null;
}
Utility function to test for and extract a subkey.

var obj = { '#': 'foo', 'bar': 'baz' };

get(obj);
// => 'foo'

get(obj, 'bar');
// => 'baz'

@param {Object} obj
@param {String} [subkey="#"] By default, use the '#' key, but you may pass any key you like
@return Returns the value of the selected key or 'null' if undefined.