Untitled
unknown
plain_text
2 years ago
429 B
34
Indexable
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);
}
}Editor is loading...