I want a function to return an element based on what the value of a child element's property is. How do I traverse HTMLCollections to do this?
How to write a recursive function. How to return a data type How to call a particular function depending on the data type How to call a function that penetrates an object on 'false' and returns an ancestor on 'true.'
There are three conditions Nested element's data type Presence of a property Value of property is true or false
let hasInnertText = ; let isElementAnArray; let innerTextValue;
Array.isArray(a) { a.find(callBackInnerText); } else { Object.keys(a).includes('innerText') }
function searchTable(a) {
if (isArray){
if(hasInnerText){
if(hasInnerText.includes("NO"))
}
} else {
callbackHigherOrderFunction(a[i])
}
} else {
Object.entries(a)
}
}