function u(i, r) {
  if (!r) return;
  const n = r.split(".").map((t) => {
    const o = Number(t);
    return isNaN(o) ? t : o;
  });
  let e = i;
  for (const t of n) {
    if (e == null)
      return;
    if (typeof e == "object")
      e = e[t];
    else
      return;
  }
  return e;
}
export {
  u as default
};
//# sourceMappingURL=getNestedValue.js.map
