mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-28 21:08:10 +00:00
refactor(gui): linting
Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
@@ -1,19 +1,18 @@
|
||||
export default function(obj, path) {
|
||||
var paths = path.split("."),
|
||||
current = obj,
|
||||
i;
|
||||
export default function (obj, path) {
|
||||
const paths = path.split('.')
|
||||
let current = obj
|
||||
let i
|
||||
|
||||
for (i = 0; i < paths.length; ++i) {
|
||||
if (current[paths[i]] == undefined) {
|
||||
return undefined;
|
||||
if (current[paths[i]] === undefined) {
|
||||
return undefined
|
||||
} else {
|
||||
current = current[paths[i]];
|
||||
current = current[paths[i]]
|
||||
}
|
||||
}
|
||||
return current;
|
||||
return current
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user