chekc if kety in array js 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!