TypeScriptType Guardsin operator
instanceof

in operatorType Guards

Array.isArray

Returns true if the specified property is in the specified object.

Syntax

'key' in object