More font crap. fixing getField typo.

This commit is contained in:
Dustin Swan 2026-02-24 17:48:40 -07:00
parent c0a8d29119
commit 414fc5d79c
No known key found for this signature in database
GPG key ID: 30D46587E2100467
3 changed files with 36 additions and 22 deletions

View file

@ -96,7 +96,7 @@ export const _rt = {
hasField: (field: string) => (obj: any) => ({
_tag: (typeof obj === 'object' && obj !== null && field in obj) ? 'True' : 'False'
}),
getfield: (field: string) => (obj: any) => obj[field] !== undefined
getField: (field: string) => (obj: any) => obj[field] !== undefined
? { _tag: 'Some', _0: obj[field] }
: { _tag: 'None' },
entries: (obj: any) => Object.entries(obj).map(([k, v]) => ({ key: k, value: v })),