lib/utils.js
function get(obj, subkey) {
  if (!obj) { return; }

  if (Array.isArray(obj)) {
    obj = obj[0];
  }
  return obj[subkey || '#'];
}
function get(obj, subkey) {
  if (!obj) { return; }

  if (Array.isArray(obj)) {
    obj = obj[0];
  }
  return obj[subkey || '#'];
}
function get ( obj , subkey ) { if ( ! obj ) { return ; } if ( Array . isArray ( obj ) ) { obj = obj [ 0 ] ; } return obj [ subkey || '#' ] ; }
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.
Utility function to test for and extract a subkey .