JSFiddle - React, Tailwind, and code Playground

by Ishank Dubey

JavaScript

var test = {name:{surname:{test:'ishank'}}};

var result = false;
try{
result = test.name.surname.test.test.test1;
} catch (err){
result = false;
}

console.log(result);