Fix javascript

Job ID: 37072318

Budget: €2 – €6 EUR

Hey, have function which check if current url contains some value from the array. If I put array manually it is working fine, if I do same think by downloading from backend, it doesn't work. Seems like some format issue or so.
var fruitsArrl = allaffi; //Array
console.log(fruitsArrl);
var myStringi = window.location.href;
if (fruitsArrl.some(fruiti => myStringi.includes(fruiti))) {
...
}
Related categories: PHP JavaScript CSS HTML jQuery / Prototype