function getProperty(object, name) {
  var names = name.split('.');
  var result = object;
  objectEach(names, function (nameItem) {
    result = result[nameItem];

    if (result === void 0) {
      result = void 0;
      return false;
    }
  });
  return result;
}
Get object property by its name. Access to sub properties can be achieved by dot notation (e.q. `'foo.bar.baz'`).

@param {Object} object Object which value will be exported.
@param {String} name Object property name.
@returns {*}