Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/remeda/remeda
/ AB
Interface
AB
packages/remeda/src/hasProp.test-d.ts:67–70 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
65
66
test(
"narrows interfaces"
, () => {
67
interface
AB {
68
a: number;
69
b?: string;
70
}
71
const
data = {} as AB;
72
73
if
(hasProp(data,
"b"
)) {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected