Latest updates from IceHrmPro
This commit is contained in:
13
web/node_modules/rc-util/es/utils/get.js
generated
vendored
Normal file
13
web/node_modules/rc-util/es/utils/get.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
export default 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