I have this code here.
const find = require('find-process');
find('name', 'TIDAL.exe')
  .then(function (list) {
    console.log(list)
  }, function (err) {
    console.log(err.stack || err);
});
which returns this here
[
  {
    pid: 7752,
    ppid: 9280,
    bin: '...',
    name: 'TIDAL.exe',
    cmd: '...'
  },
  {
    pid: 500,
    ppid: 7752,
    bin: '...',
    name: 'TIDAL.exe',
    cmd: '...'
  },
  {
    pid: 1100,
    ppid: 7752,
    bin: '...',
    name: 'TIDAL.exe',
    cmd: '...'
  },
  {
    pid: 6424,
    ppid: 7752,
    bin: '...',
    name: 'TIDAL.exe',
    cmd: '...'
  },
  {
    pid: 13692,
    ppid: 7752,
    bin: '...',
    name: 'TIDAL.exe',
    cmd: '...'
  },
  {
    pid: 3160,
    ppid: 7752,
    bin: '...',
    name: 'TIDAL.exe',
    cmd: '...'
  }
]
I need to extract the "pid" values and store them in an array but I'm stuck on how I should do it. I've looked around and tried some things out but I just can't get it to work.
 
     
    