1 | ;
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = get;
|
7 | function 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 |