I have an array
const students = [
{id:1, name:'jack', age: 20},
{id:2, name:'manny', age: 21},
{id:3, name:'rocky', age: 19}
];
Input: id studentData(2);
Output: name, age {name:’manny’, age: 21}
Kindly help how to destruct this cenario.