Find a JavaScript array merging method according to attribute values?

clipboard.png

merge these two arrays into one array according to the same situation of name and siteIndexId.
everyone, help, thank you

Mar.15,2021

has just been written before.
you can refer to this: https://github.com/Jiasm/note.


        var b = {};
        result.forEach(function (obj) {
            var array = b[obj['name']] || [];
            array.push(obj);
            b[obj['name']] = array;
        });
        console.log(b);

what is the result of your so-called merger, and what about id? Does
become an array except for these key,?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36184-2bfe1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36184-2bfe1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?