// Get value in obj based on path
export default function resolve(path: string, obj: any) {
  return path.split('.').reduce(function (prev, curr) {
    return prev ? prev[curr] : null;
  }, obj || self);
}
