Look up a key's value. Only own properties are considered — inherited prototype-chain entries return none.
none
Dual API — works data-first or curried for use in pipe.
pipe
const cache: Record<string, number> = { hits: 42 } get(cache, "hits") // { some: true, value: 42 } get(cache, "toString") // { some: false } — prototype method ignored Copy
const cache: Record<string, number> = { hits: 42 } get(cache, "hits") // { some: true, value: 42 } get(cache, "toString") // { some: false } — prototype method ignored
Look up a key's value. Only own properties are considered — inherited prototype-chain entries return
none.Dual API — works data-first or curried for use in
pipe.