{
  "version": 3,
  "sources": ["../../../../src/libs/custom/functions/access.mts"],
  "sourcesContent": ["import type { AccessByPath, AccessPaths } from \"../../../types/object.mjs\";\n\nexport const access = <T, Path extends AccessPaths<T>>(\n  obj: T,\n  path: Path\n): AccessByPath<T, Path> =>\n  // @ts-expect-error result and key cannot be inferred.\n  (path as PropertyKey[]).reduce((prev, key) => Reflect.get(prev, key), obj);\n"],
  "mappings": "AAEO,MAAM,SAAS,CACpB,KACA,SAGC,KAAuB,OAAO,CAAC,MAAM,QAAQ,QAAQ,IAAI,MAAM,MAAM;",
  "names": []
}
