UNPKG

339 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = get;
7function get(entity, path) {
8 var current = entity;
9 for (var i = 0; i < path.length; i += 1) {
10 if (current === null || current === undefined) {
11 return undefined;
12 }
13 current = current[path[i]];
14 }
15 return current;
16}
\No newline at end of file