index.js
function pick (obj, props) {
  var key
  var val
  var out
  var test = _splitProps(props)

  if (util.isObject(obj)) {
    out = {}
    for (key in test) {
      val = get(obj, key)
      if (val !== undefined && val !== null) {
        set(out, key, val)
      }
    }
  }
  return out
}
function pick (obj, props) {
  var key
  var val
  var out
  var test = _splitProps(props)

  if (util.isObject(obj)) {
    out = {}
    for (key in test) {
      val = get(obj, key)
      if (val !== undefined && val !== null) {
        set(out, key, val)
      }
    }
  }
  return out
}
function pick ( obj , props ) { var key var val var out var test = _splitProps ( props ) if ( util . isObject ( obj ) ) { out = { } for ( key in test ) { val = get ( obj , key ) if ( val !== undefined && val !== null ) { set ( out , key , val ) } } } return out }
pick properties from `obj` into a new object

#### Example

```js
var r,
pick = require('mergee').pick,
obj = { a: 1, b: [ 1, 2 ], c: { cc:3, 'c-d':4 }, '0d': { '0d0': 5 } };
r = pick(obj, ['a', 'b[1]', 'c["c-d"]', '0d.0d0']);
//> r = { a: 1, b: { '1': 2 }, c: { 'c-d': 4 }, '0d': { '0d0': 5 } }
r = pick(obj, 'a, b[1], c["c-d"], 0d.0d0');
//> r = { a: 1, b: { '1': 2 }, c: { 'c-d': 4 }, '0d': { '0d0': 5 } }
```

@param {Object} obj - object to pick properties from
@param {Array|String} props - Array of properties or comma separated string of properties
@return {Object} object with picked properties
pick properties from obj into a new object