lib/obj.js
function value(dsv, obj) {

  dsv = dsv || '';
  obj = obj || {};

  var props = dsv.split('.'),
    _value;

  for (var i = 0, ln = props.length; i < ln; i += 1) {
    _value = (_value) ? _value[props[i]] : obj[props[i]];
    if (_value === undefined) {
      break;
    }
  }

  return _value;
}
function value(dsv, obj) {

  dsv = dsv || '';
  obj = obj || {};

  var props = dsv.split('.'),
    _value;

  for (var i = 0, ln = props.length; i < ln; i += 1) {
    _value = (_value) ? _value[props[i]] : obj[props[i]];
    if (_value === undefined) {
      break;
    }
  }

  return _value;
}
function value ( dsv , obj ) { dsv = dsv || '' ; obj = obj || { } ; var props = dsv . split ( '.' ) , _value ; for ( var i = 0 , ln = props . length ; i < ln ; i += 1 ) { _value = ( _value ) ? _value [ props [ i ] ] : obj [ props [ i ] ] ; if ( _value === undefined ) { break ; } } return _value ; }
Retrieve the value of nested properties within an object.

@param {String} dsv: dot-separated nested properties name
@param {Object} obj: the object to find the nested properties from
@return {?} value of the nested properties
Retrieve the value of nested properties within an object .