Untitled

mail@pastecode.io avatarunknown
plain_text
a month ago
429 B
2
Indexable
Never
  function jsonValues(responseJson) {
   for(const value of responseJson){
      if(Array.isArray(value)){
        value.forEach((item) => {
         cy.log('item + ' + item);
        });
      } else if(typeof value === '[object Object]' && value !== null) {
            Object.values(value).forEach((obj) => {
              cy.log('Obj + ' + obj);
            });
        } else cy.log('Value + ' + value);
   }
  }