Here we've put a breakpoint when the value on globalThis.store.aamras.banana[0].chameli[2].dhatura. If we open the DevTools console and run this and then change the dhatura's value, it will trigger a breakpoint.
(() => {
const prefs =
globalThis.store?.aamras?.banana?.[0]?.chameli;
const pref = prefs?.[2];
if (!pref) return console.warn("pref [2] not there yet");