[
{
"id": "1",
"login": "Login1",
},
{
"id": "2",
"login": "Login2",
}
]
const login = "login2";
const login = 'Login2';
const data = [
{
"id": "1",
"login": "Login1",
},
{
"id": "2",
"login": "Login2",
}
];
const loginFound = !!data.find(l => l.login === login);
console.log(loginFound);