How to check the value of the orders key?
let obj = {orders:[null]} So you can, but in my opinion it looks crooked
if(obj.orders[0] !== null) {...} How to check the value of the orders key?
let obj = {orders:[null]} So you can, but in my opinion it looks crooked
if(obj.orders[0] !== null) {...} Source: https://ru.stackoverflow.com/questions/911653/
All Articles
null, or just that there is no negative value? Why do I need to write[null]? - ThisMan Nov.orders: null, not[null]- teran