I am currently trying to use the string "region" to find a specific part of JSON in my JSON file.
ex. config.regions.${region}
being equal to config.regions.northeast
(assuming hooks[i].regions[c] == northeast)
for (var c = 0; c < hooks[i].regions.length; c++) {
let region = JSON.stringify(hooks[i].regions[c]);
if (config.regions.`${region}`.includes(city)) {
webhook = config.hooks[i].webhook;
post(webhook, title, price, link, img, city, keyword);
}
}