I have an object and want to get userName.
const example = [
  {
    id: 793,
    name: 'John',
    weight: '66',
    data: [
      {
        id: 793,
        userName: 'John Ferny',
      },
    ],
  },
];
I'm not sure that example.data.filter((item) => item === item.userName is correct
 
    