I have array which i got as a result from nodeJS code
Original JSON data:
JS code:
setInterval(function() {
var notify = db.get('users')
.filter({notify: "true"})
.value()
console.log("1");
console.log(notify);
}, 10 * 1000);
Result:
[ { uid: '177098244407558145',
pubgUser: 'Jengas',
pubgServer: 'pc-eu',
notify: 'true' },
{ uid: '407970368847085578',
pubgUser: 'Lovec_Pokemonov',
pubgServer: 'pc-eu',
notify: 'true' },
{ uid: '4307970368847085578',
pubgUser: 'Lossvec_Pokemonov',
pubgServer: 'pc-eu',
notify: 'true' },
{ uid: '407970368847015578',
pubgUser: 'SDLovec_Pokemonov',
pubgServer: 'pc-eu',
notify: 'true' } ]
I wanted to get all uid values which had "true". But result was giving me "undefined" for console.log(notify.uid);
Expected result: 177098244407558145, 407970368847085578, 4307970368847085578, 407970368847015578