const fn = foo => (foo.bar ? (foo.bar.bas ? "bas" : "bar") : "bat")