Answers for "javascript find json value"

0

javascript find json value

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

var found = getCountryByCode('DZ');
Posted by: Guest on May-21-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language