Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
Dark-theme code editor screenshot. TypeScript code: import { isString, typedStruct } from 'is-kit'; type Preferences = { theme: string; locale: string }; const isPreferences = typedStruct<Preferences>()({ theme: isString, locale: isString }); const raw = localStorage.getItem('preferences'); const value = raw ? JSON.parse(raw) : null; inside if (isPreferences(value)) it reads const theme = value.theme and const locale = value.locale.
Dark-theme code editor screenshot. TypeScript code: import { isString, typedStruct } from 'is-kit'; type Preferences = { theme: string; locale: string }; const isPreferences = typedStruct<Preferences>()({ theme: isString, locale: isString }); const raw = localStorage.getItem('preferences'); const value = raw ? JSON.parse(raw) : null; inside if (isPreferences(value)) it reads const theme = value.theme and const locale = value.locale.