Im trying to set a default value to an array inside an object but for some reason it keeps the null value. What am i doing wrong and how can i set the default value ?
var response = {
  suggestions: null
}
const {
  suggestions = [],
} = response || {}
console.log(suggestions) 
     
     
    