JSFiddle - React, Tailwind, and code Playground

JavaScript

var sd= { someKey:{ },html="";

html = (typeof(sd.someKey.s) != 'undefined') ?sd.someKey.s.a: '-';
console.log(html);