I'm a bit of a novice I was hoping someone could point out what I am doing wrong.
The idea is for searchArray to loop through array values &properties. It takes the arguments (property, value). When I call the function I get a RefernencError saying that property(hostname) is undefined. Is there something wrong with browsingHistory[i].property?
function searchArray(property, value) {
for (i = 0; i < browsingHistory.length; i++) {
return value === browsingHistory[i].property;
}
}