index.js
function setObject(path, obj, val) {
  path = path.split('/')
  path.forEach(function(subPath) {
    obj = obj[subPath] = obj[subPath] || val
  })
}
function setObject(path, obj, val) {
  path = path.split('/')
  path.forEach(function(subPath) {
    obj = obj[subPath] = obj[subPath] || val
  })
}
function setObject ( path , obj , val ) { path = path . split ( '/' ) path . forEach ( function ( subPath ) { obj = obj [ subPath ] = obj [ subPath ] || val } ) }
Set a nested value on an object. @param {String} path @param {Object} obj @param {Any} value
Set a nested value on an object .