Latest updates from IceHrmPro
This commit is contained in:
20
web/node_modules/rc-util/lib/utils/get.js
generated
vendored
Normal file
20
web/node_modules/rc-util/lib/utils/get.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = get;
|
||||
|
||||
function get(entity, path) {
|
||||
var current = entity;
|
||||
|
||||
for (var i = 0; i < path.length; i += 1) {
|
||||
if (current === null || current === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
current = current[path[i]];
|
||||
}
|
||||
|
||||
return current;
|
||||
}
|
||||
Reference in New Issue
Block a user