typescript key that may not exist code example
Example: js check if object key exists
var obj = { key: undefined };
obj["key"] !== undefined // false, but the key exists!
var obj = { key: undefined };
obj["key"] !== undefined // false, but the key exists!