Property Access
When dealing with objects you may need to access their properties which can be done with the .
operator.
- Knot
- TypeScript
knot
import { foo } from "@/constants";const propertyValue = foo.property;
knot
import { foo } from "@/constants";const propertyValue = foo.property;
tsx
import { foo } from "@/constants";const propertyValue = foo.property;
tsx
import { foo } from "@/constants";const propertyValue = foo.property;