➕in
`prop in obj`
JS ⟩ statement ⟩ expression ⟩ operator ⟩ relational ⟩ in
// ⭐️ check if `prop` is property of `obj` (including inherited)
prop in obj // ⭐️ prop: string-convertable expression
Last updated
Was this helpful?
`prop in obj`
JS ⟩ statement ⟩ expression ⟩ operator ⟩ relational ⟩ in
// ⭐️ check if `prop` is property of `obj` (including inherited)
prop in obj // ⭐️ prop: string-convertable expression
Last updated
Was this helpful?