'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

/**
 * Created by baoyinghai on 7/3/17.
 */

exports.default = function (data, fieldDesc) {
  return fieldDesc.value.split('.').reduce(function (obj, path) {
    return obj[path];
  }, data);
};