Signed-off-by: Traxus <shyidx@gmail.com>

This commit is contained in:
Traxus 2023-04-21 20:24:59 -04:00
parent d5f4742272
commit 08d0fcdc48

View File

@ -175,11 +175,12 @@ function jsonFilePathIsValid(filePath : string) {
function jsonNodeExists(jsonData : object, node : string) {
if (typeof node === 'string' || node instanceof String) {
//-----this condition is unneccessary... so THATS what typescript is for XD
//if (typeof node === 'string' || node instanceof String) {
if (node in jsonData === true) {
return true;
}
}
//}
return false;
}