Is key exists in JavaScript object

For example we have JavaScript object woof_current_values. So if its necessary to define is item with key 'stock' exists in it we can do it with the next js script: