JavaScript Encontre o valor JSON

function getCountryByCode(code) {
  return data.filter(
      function(data){ return data.code == code }
  );
}

var found = getCountryByCode('DZ');
Inexpensive Ibex