I'm trying to import a function from an App.js (it checks the string in the URL) to another module, but outside App.js the function returns an [object Object]. Tell me, please, what could be the reason? I tried different syntax for export, the result is the same.
export function itTest(){
const mobileAp = location.search.indexOf("mobile=true") > -1;
return ( mobileAp
)}
const test = {itTest};
console.log(test)
[object Ojbect]