var array = [
{ id: 0, name: 'test1'},
{ id: 1, name: 'test2'},
{ id: 2, name: 'test3'}
];
function isName(array, value) {
return array.some(function(el){
return el['name'] === value;
});
}
alert(isName(array, 'Ivan')); //false
alert(isName(array, 'test2')); //true