mirror of
https://github.com/LaconicNetwork/laconic.com.git
synced 2026-01-19 04:24:09 +00:00
Signed-off-by: Traxus <shyidx@gmail.com>
This commit is contained in:
parent
d5f4742272
commit
08d0fcdc48
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user