Answers for "shorthand if in javascript with return"

1

shorthand if in javascript with return

pet = pets.find(pet => pet.type ==='Dog' && pet.name === 'Tommy');
console.log(pet); // { type: 'Dog', name: 'Tommy' }
Posted by: Guest on April-15-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language