I tried using .includes() method but I can't get it to work.
data = [{
"Global Quote": {
"01. symbol": "TSLA",
"02. open": "256.7100",
"03. high": "260.4800",
"04. low": "254.5100",
"05. price": "260.1700",
"06. volume": "4967930",
"07. latest trading day": "2019-07-23",
"08. previous close": "255.6800",
"09. change": "4.4900",
"10. change percent": "1.7561%"
}
}]
data.includes("Global Quote") ? console.log("found") : console.log("not
found");
console logs "not found" every time...
stringagainst theobject.