var array1 = [{"value": "0E1"}, {"value":"8B3"}...];
var array2 = [{"code":"0E1", "desc": "Some text"}, {"code":"8B3", "desc": "Some text"}, {"code":"9N8", "desc": "Some text"}...]
array2.filter(item => item.code == array1.value)
const result = array2.filter(function(n) {
return this.has(n.code);
}, new Set(array1.map(n => n.value)));
const obj2 = Object.fromEntries(array2.map(n => [ n.code, n ]));
const result = array1.reduce((acc, n) => ((n = obj2[n.value]) && acc.push(n), acc), []);
const result = array2.filter(n => array1.some(m => m.value === n.code));
const array1 = [{ value: '0E1' }, { value: '8B3' }];
const array2 = [
{ code: '0E1', desc: 'Some text' },
{ code: '8B3', desc: 'Some text' },
{ code: '9N8', desc: 'Some text' },
];
const filter = array1.map((el) => el.value);
const result = array2.filter((el) => filter.includes(el.code));
console.log(result);
// Array [ {…}, {…} ]
// 0: Object { code: "0E1", desc: "Some text" }
// 1: Object { code: "8B3", desc: "Some text" }